mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-12 11:02:21 -05:00
Fix to stop removal message of cache items from occuring when untrue
This commit is contained in:
parent
1fcfa4c70a
commit
628fe23f8d
@ -65,7 +65,7 @@ def syncNameCache():
|
||||
for curShow in sickbeard.showList:
|
||||
for show_name in set(sickbeard.show_name_helpers.allPossibleShowNames(curShow)):
|
||||
sqlResult = cacheDB.action("DELETE FROM scene_names WHERE name = ? and indexer_id = ?", [show_name, 0])
|
||||
if sqlResult:
|
||||
if sqlResult.rowcount > 0:
|
||||
logger.log(u"Removing invalid record for [" + show_name + "] from cache ...")
|
||||
break
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user