mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-26 23:39:11 -05:00
sort the PromotionLog
This commit is contained in:
@@ -1027,7 +1027,8 @@ class PromotionLog(tdb_cassandra.View):
|
||||
row = cls._byID(rowkey)
|
||||
except tdb_cassandra.NotFound:
|
||||
return []
|
||||
return row._values().values()
|
||||
tuples = sorted(row._values().items(), key=lambda t: t[0].time)
|
||||
return [t[1] for t in tuples]
|
||||
|
||||
|
||||
def Run(offset = 0):
|
||||
|
||||
Reference in New Issue
Block a user