fix: deduplicate after finishing the repost (#28803)

Not really a bug but avoids potential of prematurely skipping something
if failure occurs and failure isn't resolved.
This commit is contained in:
Ankush Menat 2021-12-09 13:45:44 +05:30 committed by GitHub
parent f043f59324
commit c64d5028b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -168,8 +168,8 @@ def repost_entries():
for row in riv_entries:
doc = frappe.get_doc('Repost Item Valuation', row.name)
if doc.status in ('Queued', 'In Progress'):
doc.deduplicate_similar_repost()
repost(doc)
doc.deduplicate_similar_repost()
riv_entries = get_repost_item_valuation_entries()
if riv_entries: