mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-05 17:43:37 +00:00
Fixed SQL Syntax errors
This commit is contained in:
parent
13cbffb6d4
commit
d091c3a138
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue