mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-12 11:02:21 -05:00
More cache fixes
This commit is contained in:
parent
e10a725d27
commit
cc0296783b
@ -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"]))
|
||||
|
Loading…
Reference in New Issue
Block a user