From 488f2934b75a0ae32ad0dd660f688c6839a166b6 Mon Sep 17 00:00:00 2001 From: barbequesauce Date: Mon, 19 Nov 2018 11:49:05 -0500 Subject: [PATCH] FIX: Including ignored annuals in file rescan totals --- mylar/updater.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/mylar/updater.py b/mylar/updater.py index bb85372b..1d612ba3 100755 --- a/mylar/updater.py +++ b/mylar/updater.py @@ -1486,9 +1486,10 @@ def forceRescan(ComicID, archive=None, module=None, recheck=False): ignorecount = 0 if mylar.CONFIG.IGNORE_HAVETOTAL: # if this is enabled, will increase Have total as if in Archived Status - ignores = myDB.select("SELECT count(*) FROM issues WHERE ComicID=? AND Status='Ignored'", [ComicID]) - if int(ignores[0][0]) > 0: - ignorecount = ignores[0][0] + ignoresi = myDB.select("SELECT count(*) FROM issues WHERE ComicID=? AND Status='Ignored'", [ComicID]) + ignoresa = myDB.select("SELECT count(*) FROM annuals WHERE ComicID=? AND Status='Ignored'", [ComicID]) + ignorecount = int(ignoresi[0][0]) + int(ignoresa[0][0]) + if ignorecount > 0: havefiles = havefiles + ignorecount logger.fdebug(module + ' Adjusting have total to ' + str(havefiles) + ' because of this many Ignored files:' + str(ignorecount))