mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-08-08 09:38:30 +00:00
[Update] 还原一些
This commit is contained in:
parent
c84df42ff4
commit
907d93bcad
@ -211,7 +211,7 @@ class AssetsAmountMixin:
|
|||||||
cached = cache.get(cache_key)
|
cached = cache.get(cache_key)
|
||||||
if cached is not None:
|
if cached is not None:
|
||||||
return cached
|
return cached
|
||||||
assets_amount = self.get_all_assets().only('id').count()
|
assets_amount = self.get_all_assets().count()
|
||||||
self.assets_amount = assets_amount
|
self.assets_amount = assets_amount
|
||||||
return assets_amount
|
return assets_amount
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user