Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
SiCKRAGE
sickrage
Commits
79d9ea15
Commit
79d9ea15
authored
Nov 18, 2018
by
echel0n
Browse files
Fixed issue with database integrity checks.
parent
b005c24a
Changes
2
Hide whitespace changes
Inline
Side-by-side
changelog.md
View file @
79d9ea15
# Changelog
-
*
64af6f1 - 2018-11-18: Refactored app to use pip2 instead of pip. Fixed issues with source upgrading.
-
*
5e19197 - 2018-11-18: Fixed issue with database integrity checks.
-
*
b005c24 - 2018-11-18: Refactored app to use pip2 instead of pip. Fixed issues with source upgrading.
-
*
8d1c1a6 - 2018-11-18: Refactored pypi publish to use twine
-
*
d49c03b - 2018-11-18: Release v9.4.39
-
*
4d3e19d - 2018-11-18: Refactored grunt python commands to use virtual environment.
...
...
sickrage/core/databases/__init__.py
View file @
79d9ea15
...
...
@@ -234,7 +234,7 @@ class srDatabase(object):
# check integrity of index data
for
x
in
self
.
db
.
all
(
index_name
):
try
:
data
+=
[
self
.
get
(
'id'
,
x
.
get
(
'_id'
))]
data
+=
[
self
.
db
.
get
(
'id'
,
x
.
get
(
'_id'
))]
except
Exception
:
failed
=
True
...
...
@@ -341,7 +341,7 @@ class srDatabase(object):
corrupted
=
self
.
db
.
get
(
'id'
,
_id
,
with_storage
=
False
)
self
.
db
.
_delete_id_index
(
corrupted
.
get
(
'_id'
),
corrupted
.
get
(
'_rev'
),
None
)
except
:
log
.
debug
(
'Failed deleting corrupted: {}'
.
format
(
traceback
.
format_exc
()))
sickrage
.
app
.
log
.
debug
(
'Failed deleting corrupted: {}'
.
format
(
traceback
.
format_exc
()))
def
all
(
self
,
*
args
,
**
kwargs
):
with_doc
=
kwargs
.
pop
(
'with_doc'
,
True
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment