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

Co-authored-by: feng <1304903146@qq.com>
pull/12999/head
fit2bot 2024-04-11 18:32:00 +08:00 committed by GitHub
parent ab76745a9f
commit 0adc854721
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -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