Merge pull request #3937 from jumpserver/dev_index

[Update] 更新仪表盘数据显示问题
pull/3942/head
BaiJiangJie 2020-04-24 11:30:30 +08:00 committed by GitHub
commit 5d433456d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ class MonthLoginMetricMixin:
@staticmethod
def get_cache_key(date, tp):
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
def __get_data_from_cache(self, date, tp):