diff --git a/jumpserver/views.py b/jumpserver/views.py index 06b1c0f8c..cf6a6473b 100644 --- a/jumpserver/views.py +++ b/jumpserver/views.py @@ -36,8 +36,8 @@ def index(request): path1, path2 = u'仪表盘', 'Dashboard' dic = {} li_date, li_str = getDaysByNum(7) - li_str = json.dumps(li_str) - print li_str + # li_str = json.dumps(li_str) + # print li_str, type(li_str) today = datetime.datetime.now().day from_week = datetime.datetime.now() - datetime.timedelta(days=7) week_data = Log.objects.filter(start_time__range=[from_week, datetime.datetime.now()]) diff --git a/templates/index.html b/templates/index.html index 3c7325c54..eedf6584d 100644 --- a/templates/index.html +++ b/templates/index.html @@ -58,13 +58,14 @@ -