'
if comic['percent'] < 100:
css = '
'
if any([comic['haveissues'] == 'None', comic['haveissues'] is None]):
hissues = 0
else:
hissues = comic['haveissues']
if any([comic['totalissues'] == 'None', comic['totalissues'] is None]):
tissues = 0
else:
tissues = comic['totalissues']
comic_percent = comic['percent']
if comic['Status'] == 'Paused':
grade = 'T'
elif comic['Status'] == 'Loading':
grade = 'L'
elif comic['Status'] == 'Error':
grade = 'X'
else:
grade = 'A'
comicpub = comic['ComicPublisher']
try:
if len(comic['ComicPublisher']) > 15:
comicpub = comic['ComicPublisher'][:15] + '...'
except:
pass
comicname = comic['ComicSortName']
try:
if len(comic['ComicSortName']) > 55:
comicname = comic['ComicSortName'][:55] + '...'
except:
pass
comicline = comicname
comictype = comic['Type']
try:
if (any([comictype == 'None', comictype is None, comictype == 'Print']) and comic['Corrected_Type'] != 'TPB') or all([comic['Corrected_Type'] is not None, comic['Corrected_Type'] == 'Print']):
comictype = None
else:
if comic['Corrected_Type'] is not None:
comictype = comic['Corrected_Type']
else:
comictype = comictype
except:
comictype = None
if comictype is not None:
comicline += ' [%s]' % (comictype)
%>
${comicpub} |
${comicline} |
${comic['ComicYear']} |
# ${comic['LatestIssue']} |
${comic['LatestDate']} |
${comic_percent} |
${css} ${comic['haveissues']}/${comic['totalissues']} |
${comic['totalissues']} |
${comic['recentstatus']} |
%if comic['Status'] == "Active":
%elif comic['Status'] == 'Paused':
%elif comic['Status'] == 'Loading':
%else:
%endif
|
${comic['Status']} |
%endfor