[Bugfix] 倒序显示

pull/968/head
ibuler 2018-01-22 18:48:16 +08:00
parent 7670f521a2
commit dd6e9444e1
1 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ class CommandStore(CommandBase):
queryset = []
for storage in self.storage_list:
queryset.extend(storage.filter(**kwargs))
return sorted(queryset, key=lambda command: command["timestamp"])
return sorted(queryset, key=lambda command: command["timestamp"], reverse=True)
def count(self, **kwargs):
amount = 0
@ -24,4 +24,4 @@ class CommandStore(CommandBase):
pass
def bulk_save(self, commands):
pass
pass