1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-12-12 11:02:21 -05:00

More cache fixes

This commit is contained in:
echel0n 2014-04-29 07:55:38 -07:00
parent e10a725d27
commit cc0296783b

View File

@ -59,7 +59,7 @@ class CacheDBConnection(db.DBConnection):
# Delete any entries missing a Indexer ID
try:
sqlResults = self.connection.execute(
"SELECT * FROM [" + providerName + "] WHERE indexerid is NULL or 0 or None")
"SELECT * FROM [" + providerName + "] WHERE indexerid is NULL OR indexerid = 0")
for cur_orphan in sqlResults:
logger.log(u"Missing IndexerID detected! name: " + str(cur_orphan["name"]), logger.DEBUG)
logger.log(u"Deleting orphaned cache entry with name: " + str(cur_orphan["name"]))