Commit 79d9ea15 authored by echel0n's avatar echel0n

Fixed issue with database integrity checks.

parent b005c24a
# 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.
......
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment