%inherit file="base.html"/> <%! from mylar import helpers, db import datetime %> <%def name="body()">
Publisher | Comic | Year | Last Issue | Published | Have | Status | Active |
---|---|---|---|---|---|---|---|
${comic['ComicPublisher']} | ${comic['ComicName']} | ${comic['ComicYear']} | # ${comic['LatestIssue']} | ${comic['LatestDate']} | ${havetracks}/${totaltracks} |
%if comic['ComicPublished'] is None or comic['ComicPublished'] == '': Unknown %elif comic['ForceContinuing'] == 1: Continuing %elif 'present' in comic['ComicPublished'].lower() or ( helpers.today()[:4] in comic['LatestDate']): <% latestdate = comic['LatestDate'] c_date = datetime.date(int(latestdate[:4]),int(latestdate[5:7]),1) n_date = datetime.date.today() recentchk = (n_date - c_date).days if recentchk < 55: recentstatus = 'Continuing' else: recentstatus = 'Ended' %> ${recentstatus} %else: Ended %endif | %if comic['Status'] == "Active": %else: %endif |