mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-08 11:03:38 +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 = []
|
ql = []
|
||||||
logger.log(u"Converting Indexer to Integer ...", logger.MESSAGE)
|
logger.log(u"Converting Indexer to Integer ...", logger.MESSAGE)
|
||||||
ql.append(["UPDATE tv_shows SET indexer = ? WHERE LOWER(indexer) = ?", ["1", "tvdb"]])
|
self.connection.action("UPDATE tv_shows SET indexer = ? WHERE LOWER(indexer) = ?", ["1", "tvdb"])
|
||||||
ql.append(["UPDATE tv_shows SET indexer = ? WHERE LOWER(indexer) = ?", ["2", "tvrage"]])
|
self.connection.action("UPDATE tv_shows SET indexer = ? WHERE LOWER(indexer) = ?", ["2", "tvrage"])
|
||||||
ql.append(["UPDATE tv_episodes SET indexer = ? WHERE LOWER(indexer) = ?", ["1", "tvdb"]])
|
self.connection.action("UPDATE tv_episodes SET indexer = ? WHERE LOWER(indexer) = ?", ["1", "tvdb"])
|
||||||
ql.append(["UPDATE tv_episodes SET indexer = ? WHERE LOWER(indexer) = ?", ["2", "tvrage"]])
|
self.connection.action("UPDATE tv_episodes SET indexer = ? WHERE LOWER(indexer) = ?", ["2", "tvrage"])
|
||||||
self.connection.mass_action(ql)
|
|
||||||
|
|
||||||
self.incDBVersion()
|
self.incDBVersion()
|
Loading…
Reference in a new issue