Commit dd6e9444 authored by ibuler's avatar ibuler

[Bugfix] 倒序显示

parent 7670f521
......@@ -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
\ No newline at end of file
pass
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment