From d091c3a138a32170a3aac6e8400f656f2e9b5305 Mon Sep 17 00:00:00 2001 From: echel0n Date: Thu, 26 Jun 2014 15:57:06 -0700 Subject: [PATCH] Fixed SQL Syntax errors --- sickbeard/tvcache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sickbeard/tvcache.py b/sickbeard/tvcache.py index 457f04e4..39727d0a 100644 --- a/sickbeard/tvcache.py +++ b/sickbeard/tvcache.py @@ -56,7 +56,7 @@ class CacheDBConnection(db.DBConnection): "CREATE TABLE [" + providerName + "] (name TEXT, season NUMERIC, episodes TEXT, indexerid NUMERIC, url TEXT, time NUMERIC, quality TEXT)") else: # remove duplicates - self.action("DELETE FROM " + providerName + " WHERE url NOT IN (SELECT url FROM " + providerName + " GROUP BY url") + self.action("DELETE FROM " + providerName + " WHERE url NOT IN (SELECT url FROM " + providerName + " GROUP BY url)") except Exception, e: if str(e) != "table [" + providerName + "] already exists": raise