mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-05 17:43:37 +00:00
Fix in indexer conversion code for mainDB
This commit is contained in:
parent
e8fd2d20b3
commit
5709c8843c
1 changed files with 4 additions and 5 deletions
|
@ -655,10 +655,9 @@ class ConvertIndexerToInteger(AddSceneNumbering):
|
|||
|
||||
ql = []
|
||||
logger.log(u"Converting Indexer to Integer ...", logger.MESSAGE)
|
||||
ql.append(["UPDATE tv_shows SET indexer = ? WHERE LOWER(indexer) = ?", ["1", "tvdb"]])
|
||||
ql.append(["UPDATE tv_shows SET indexer = ? WHERE LOWER(indexer) = ?", ["2", "tvrage"]])
|
||||
ql.append(["UPDATE tv_episodes SET indexer = ? WHERE LOWER(indexer) = ?", ["1", "tvdb"]])
|
||||
ql.append(["UPDATE tv_episodes SET indexer = ? WHERE LOWER(indexer) = ?", ["2", "tvrage"]])
|
||||
self.connection.mass_action(ql)
|
||||
self.connection.action("UPDATE tv_shows SET indexer = ? WHERE LOWER(indexer) = ?", ["1", "tvdb"])
|
||||
self.connection.action("UPDATE tv_shows SET indexer = ? WHERE LOWER(indexer) = ?", ["2", "tvrage"])
|
||||
self.connection.action("UPDATE tv_episodes SET indexer = ? WHERE LOWER(indexer) = ?", ["1", "tvdb"])
|
||||
self.connection.action("UPDATE tv_episodes SET indexer = ? WHERE LOWER(indexer) = ?", ["2", "tvrage"])
|
||||
|
||||
self.incDBVersion()
|
Loading…
Reference in a new issue