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