mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-08-31 06:46:24 +00:00
perf: terminal command ordering (#9517)
Co-authored-by: feng <1304903146@qq.com>
This commit is contained in:
@@ -103,9 +103,9 @@ class CommandViewSet(JMSBulkModelViewSet):
|
||||
command_store = get_command_storage()
|
||||
serializer_class = SessionCommandSerializer
|
||||
filterset_class = CommandFilter
|
||||
search_fields = ('input',)
|
||||
model = Command
|
||||
ordering_fields = ('timestamp',)
|
||||
search_fields = ('input',)
|
||||
ordering_fields = ('timestamp', 'risk_level')
|
||||
|
||||
def merge_all_storage_list(self, request, *args, **kwargs):
|
||||
merged_commands = []
|
||||
|
Reference in New Issue
Block a user