FIX: fix for series cover being set to None on refresh

This commit is contained in:
evilhero 2018-02-16 17:01:07 -05:00
parent cbb04d523e
commit da9f7c6521
1 changed files with 5 additions and 2 deletions

View File

@ -173,7 +173,10 @@ class WebInterface(object):
# imagetopull = myDB.selectone('SELECT issueid from issues where ComicID=? AND Int_IssueNumber=?', [comic['ComicID'], helpers.issuedigits(comic['LatestIssue'])]).fetchone()
# imageurl = mylar.cv.getComic(comic['ComicID'], 'image', issueid=imagetopull[0])
# helpers.getImage(comic['ComicID'], imageurl)
if comic['ComicImage'] is None:
comicImage = 'cache/' + str(ComicID) + '.jpg'
else:
comicImage = comic['ComicImage']
comicConfig = {
"fuzzy_year0": helpers.radio(int(usethefuzzy), 0),
"fuzzy_year1": helpers.radio(int(usethefuzzy), 1),
@ -186,7 +189,7 @@ class WebInterface(object):
"totalissues": totalissues,
"haveissues": haveissues,
"percent": percent,
"ComicImage": comic['ComicImage'] + '?' + datetime.datetime.now().strftime('%y-%m-%d %H:%M:%S')
"ComicImage": comicImage + '?' + datetime.datetime.now().strftime('%y-%m-%d %H:%M:%S')
}
if mylar.CONFIG.ANNUALS_ON: