mirror of https://github.com/jumpserver/jumpserver
[Bugfix] 倒序显示
parent
7670f521a2
commit
dd6e9444e1
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue