mirror of https://github.com/jumpserver/jumpserver
[Bugfix] 倒序显示
parent
7670f521a2
commit
dd6e9444e1
|
@ -12,7 +12,7 @@ class CommandStore(CommandBase):
|
||||||
queryset = []
|
queryset = []
|
||||||
for storage in self.storage_list:
|
for storage in self.storage_list:
|
||||||
queryset.extend(storage.filter(**kwargs))
|
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):
|
def count(self, **kwargs):
|
||||||
amount = 0
|
amount = 0
|
||||||
|
@ -24,4 +24,4 @@ class CommandStore(CommandBase):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def bulk_save(self, commands):
|
def bulk_save(self, commands):
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Reference in New Issue