mirror of https://github.com/evilhero/mylar
FIX: Including ignored annuals in file rescan totals
This commit is contained in:
parent
22a3345aa6
commit
488f2934b7
|
@ -1486,9 +1486,10 @@ def forceRescan(ComicID, archive=None, module=None, recheck=False):
|
||||||
|
|
||||||
ignorecount = 0
|
ignorecount = 0
|
||||||
if mylar.CONFIG.IGNORE_HAVETOTAL: # if this is enabled, will increase Have total as if in Archived Status
|
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])
|
ignoresi = myDB.select("SELECT count(*) FROM issues WHERE ComicID=? AND Status='Ignored'", [ComicID])
|
||||||
if int(ignores[0][0]) > 0:
|
ignoresa = myDB.select("SELECT count(*) FROM annuals WHERE ComicID=? AND Status='Ignored'", [ComicID])
|
||||||
ignorecount = ignores[0][0]
|
ignorecount = int(ignoresi[0][0]) + int(ignoresa[0][0])
|
||||||
|
if ignorecount > 0:
|
||||||
havefiles = havefiles + ignorecount
|
havefiles = havefiles + ignorecount
|
||||||
logger.fdebug(module + ' Adjusting have total to ' + str(havefiles) + ' because of this many Ignored files:' + str(ignorecount))
|
logger.fdebug(module + ' Adjusting have total to ' + str(havefiles) + ' because of this many Ignored files:' + str(ignorecount))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue