mirror of https://github.com/jumpserver/jumpserver
[Update] 还原一些
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