1
0
Fork 0
mirror of https://github.com/evilhero/mylar synced 2024-12-23 08:12:41 +00:00

Change up to use already established variable.

This commit is contained in:
hubcaps 2017-05-26 22:26:20 -07:00 committed by evilhero
parent 74bfca41a7
commit 33b6de987b

View file

@ -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'