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:
parent
74bfca41a7
commit
33b6de987b
1 changed files with 1 additions and 3 deletions
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue