diff --git a/webroot/AutoSa/AutoSa/views.py b/webroot/AutoSa/AutoSa/views.py index 064319f44..45509baed 100644 --- a/webroot/AutoSa/AutoSa/views.py +++ b/webroot/AutoSa/AutoSa/views.py @@ -957,7 +957,7 @@ def downFile(request): @admin_required def logView(request): thirtyDayAgo = (datetime.datetime.now() - datetime.timedelta(30)) - thirtyDayAgoStamp = int(thirtyDayAgo.timetuple()) + thirtyDayAgoStamp = int(time.mktime(thirtyDayAgo.timetuple())) logs_all = Logs.objects.filter(start_time__gt=thirtyDayAgoStamp) paginator = Paginator(logs_all, 20) diff --git a/webroot/AutoSa/templates/logView.html b/webroot/AutoSa/templates/logView.html index 88f2b85e9..6c29d824d 100644 --- a/webroot/AutoSa/templates/logView.html +++ b/webroot/AutoSa/templates/logView.html @@ -1,4 +1,6 @@ {% extends 'base.html' %} +{% load mytags %} + {% block content %}