fix: deduplicate after finishing the repost (#28803) (#28806)

Not really a bug but avoids potential of prematurely skipping something
if failure occurs and failure isn't resolved.

(cherry picked from commit c64d5028b4)

Co-authored-by: Ankush Menat <ankush@frappe.io>
This commit is contained in:
mergify[bot]
2021-12-09 15:55:38 +05:30
committed by GitHub
parent 0cf3ab3264
commit 4d0d39c59c

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: