Browse Source

perf: 优化审计台命令记录代码 (#12998)

Co-authored-by: feng <1304903146@qq.com>
pull/12999/head
fit2bot 8 months ago committed by GitHub
parent
commit
0adc854721
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      apps/jumpserver/api.py

4
apps/jumpserver/api.py

@ -250,12 +250,12 @@ class DatesLoginMetricMixin:
@lazyproperty
def commands_amount(self):
total_amount, _ = self.command_statistics
total_amount, __ = self.command_statistics
return total_amount
@lazyproperty
def commands_danger_amount(self):
_, danger_amount = self.command_statistics
__, danger_amount = self.command_statistics
return danger_amount
@lazyproperty

Loading…
Cancel
Save