Tweaked the grouping code to not break documents of the same type up

- Legacy-Id: 5595
This commit is contained in:
Robert Sparks 2013-03-25 21:34:08 +00:00
parent 10b4f7a4dc
commit 581280be11

View file

@ -657,7 +657,7 @@ def ad_dashboard_sort_key(doc):
changetime= doc.latest_event(type='changed_document')
if changetime:
ageseconds = (datetime.datetime.now()-doc.latest_event(type='changed_document').time).total_seconds()
return "1%d%s%010d" % (state[0].order,seed,ageseconds)
return "1%d%s%s%010d" % (state[0].order,seed,doc.type.slug,ageseconds)
return "3%s" % seed