From 33b6de987b0c395a3efbd670b69fe023a6d7cce3 Mon Sep 17 00:00:00 2001 From: hubcaps Date: Fri, 26 May 2017 22:26:20 -0700 Subject: [PATCH] Change up to use already established variable. --- data/interfaces/default/searchresults.html | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/data/interfaces/default/searchresults.html b/data/interfaces/default/searchresults.html index 4ba08646..6a719d00 100755 --- a/data/interfaces/default/searchresults.html +++ b/data/interfaces/default/searchresults.html @@ -1,6 +1,5 @@ <%inherit file="base.html" /> <%! - import datetime import mylar from mylar.helpers import checked @@ -67,8 +66,7 @@ %if searchresults: %for result in searchresults: <% - now = datetime.datetime.now() - if result['comicyear'] == now.year: + if result['comicyear'] == mylar.CURRENT_YEAR: grade = 'A' else: grade = 'Z'