Skip to content

Commit 581280b

Browse files
committed
Tweaked the grouping code to not break documents of the same type up
- Legacy-Id: 5595
1 parent 10b4f7a commit 581280b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/idrfc/views_search.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,7 @@ def ad_dashboard_sort_key(doc):
657657
changetime= doc.latest_event(type='changed_document')
658658
if changetime:
659659
ageseconds = (datetime.datetime.now()-doc.latest_event(type='changed_document').time).total_seconds()
660-
return "1%d%s%010d" % (state[0].order,seed,ageseconds)
660+
return "1%d%s%s%010d" % (state[0].order,seed,doc.type.slug,ageseconds)
661661

662662
return "3%s" % seed
663663

0 commit comments

Comments
 (0)