Skip to content

Commit d89695e

Browse files
committed
code change for deduplication fix
1 parent 6b2cc4c commit d89695e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dojo/tasks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def _async_dupe_delete_impl():
126126
# limit to settings.DUPE_DELETE_MAX_PER_RUN to prevent overlapping jobs
127127
results = Finding.objects \
128128
.filter(duplicate=True) \
129-
.order_by() \
129+
.order_by("date") \
130130
.values("duplicate_finding") \
131131
.annotate(num_dupes=Count("id")) \
132132
.filter(num_dupes__gt=dupe_max)[:total_duplicate_delete_count_max_per_run]

0 commit comments

Comments
 (0)