Private GIT
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SickRage-1
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
vlbox
SickRage-1
Commits
a298bb85
Commit
a298bb85
authored
Sep 8, 2015
by
Dustyn Gibson
Browse files
Options
Downloads
Patches
Plain Diff
Swap mapped indexer ids, I had those backwards
parent
08eaa7f7
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
sickbeard/databases/mainDB.py
+4
-4
4 additions, 4 deletions
sickbeard/databases/mainDB.py
with
4 additions
and
4 deletions
sickbeard/databases/mainDB.py
+
4
−
4
View file @
a298bb85
...
...
@@ -58,7 +58,7 @@ class MainSanityCheck(db.DBSanityCheck):
for
tvrage_show
in
sqlResults
:
mapping
=
self
.
connection
.
select
(
"
SELECT indexer_id FROM indexer_mapping WHERE
m
indexer_id=%i AND
m
indexer=%i AND indexer=%i
"
%
"
SELECT
m
indexer_id FROM indexer_mapping WHERE indexer_id=%i AND indexer=%i AND
m
indexer=%i
"
%
(
tvrage_show
[
'
indexer_id
'
],
INDEXER_TVRAGE
,
INDEXER_TVDB
)
)
...
...
@@ -70,17 +70,17 @@ class MainSanityCheck(db.DBSanityCheck):
continue
logger
.
log
(
'
Mapping %s to tvdb id %i
'
%
tvrage_show
[
'
show_name
'
],
mapping
[
0
][
'
indexer_id
'
])
logger
.
log
(
'
Mapping %s to tvdb id %i
'
%
tvrage_show
[
'
show_name
'
],
mapping
[
0
][
'
m
indexer_id
'
])
self
.
connection
.
action
(
"
UPDATE tv_shows SET indexer=%i, indexer_id=%i WHERE indexer_id=%i
"
%
(
INDEXER_TVDB
,
mapping
[
0
][
'
indexer_id
'
],
tvrage_show
[
'
indexer_id
'
])
(
INDEXER_TVDB
,
mapping
[
0
][
'
m
indexer_id
'
],
tvrage_show
[
'
indexer_id
'
])
)
logger
.
log
(
u
'
Relinking episodes to show
'
)
self
.
connection
.
action
(
"
UPDATE tv_episodes SET indexer=%i, showid=%i, indexerid=0 WHERE showid=%i
"
%
(
INDEXER_TVDB
,
mapping
[
0
][
'
indexer_id
'
],
tvrage_show
[
'
indexer_id
'
])
(
INDEXER_TVDB
,
mapping
[
0
][
'
m
indexer_id
'
],
tvrage_show
[
'
indexer_id
'
])
)
logger
.
log
(
'
Please perform a full update on %s
'
%
tvrage_show
[
'
show_name
'
],
logger
.
WARNING
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment