1
0
Fork 0
mirror of https://github.com/evilhero/mylar synced 2024-12-23 16:22:45 +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" /> <%inherit file="base.html" />
<%! <%!
import datetime
import mylar import mylar
from mylar.helpers import checked from mylar.helpers import checked
@ -67,8 +66,7 @@
%if searchresults: %if searchresults:
%for result in searchresults: %for result in searchresults:
<% <%
now = datetime.datetime.now() if result['comicyear'] == mylar.CURRENT_YEAR:
if result['comicyear'] == now.year:
grade = 'A' grade = 'A'
else: else:
grade = 'Z' grade = 'Z'