From da9f7c65215b04cae41345f0449f28f57237149f Mon Sep 17 00:00:00 2001 From: evilhero Date: Fri, 16 Feb 2018 17:01:07 -0500 Subject: [PATCH] FIX: fix for series cover being set to None on refresh --- mylar/webserve.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/mylar/webserve.py b/mylar/webserve.py index 789199c9..c6869ea8 100644 --- a/mylar/webserve.py +++ b/mylar/webserve.py @@ -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: