mirror of https://github.com/jumpserver/jumpserver
commit
5d433456d4
|
@ -36,7 +36,7 @@ class MonthLoginMetricMixin:
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def get_cache_key(date, tp):
|
def get_cache_key(date, tp):
|
||||||
date_str = date.strftime("%Y%m%d")
|
date_str = date.strftime("%Y%m%d")
|
||||||
key = "SESSION_MONTH_{}_{}".format(tp, date_str)
|
key = "SESSION_MONTH_{}_{}_{}".format(current_org.id, tp, date_str)
|
||||||
return key
|
return key
|
||||||
|
|
||||||
def __get_data_from_cache(self, date, tp):
|
def __get_data_from_cache(self, date, tp):
|
||||||
|
|
Loading…
Reference in New Issue