1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-11-17 06:45:05 -05:00

Fixed SQL Syntax errors

This commit is contained in:
echel0n 2014-06-26 15:57:06 -07:00
parent 13cbffb6d4
commit d091c3a138

View File

@ -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