From cc0296783b264250974a2b8824da58d8858946a8 Mon Sep 17 00:00:00 2001 From: echel0n Date: Tue, 29 Apr 2014 07:55:38 -0700 Subject: [PATCH] More cache fixes --- sickbeard/tvcache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sickbeard/tvcache.py b/sickbeard/tvcache.py index a52b6bbc..732cdb4e 100644 --- a/sickbeard/tvcache.py +++ b/sickbeard/tvcache.py @@ -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"]))