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() # 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]) # imageurl = mylar.cv.getComic(comic['ComicID'], 'image', issueid=imagetopull[0])
# helpers.getImage(comic['ComicID'], imageurl) # helpers.getImage(comic['ComicID'], imageurl)
if comic['ComicImage'] is None:
comicImage = 'cache/' + str(ComicID) + '.jpg'
else:
comicImage = comic['ComicImage']
comicConfig = { comicConfig = {
"fuzzy_year0": helpers.radio(int(usethefuzzy), 0), "fuzzy_year0": helpers.radio(int(usethefuzzy), 0),
"fuzzy_year1": helpers.radio(int(usethefuzzy), 1), "fuzzy_year1": helpers.radio(int(usethefuzzy), 1),
@ -186,7 +189,7 @@ class WebInterface(object):
"totalissues": totalissues, "totalissues": totalissues,
"haveissues": haveissues, "haveissues": haveissues,
"percent": percent, "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: if mylar.CONFIG.ANNUALS_ON: