Commit 93c5ad51 authored by echel0n's avatar echel0n
Browse files

Fixed issues with failed and cache database cleanup on new revs

parent 8e43de89
# Changelog
- * d335473 - 2017-12-11: Fixed issues with removing duplicate shows and episodes
- * 81c44ef - 2017-12-11: Fixed issues with failed and cache database cleanup on new revs
- * 8e43de8 - 2017-12-11: Fixed issues with removing duplicate shows and episodes
- * 7b19a3c - 2017-12-11: Updated misc provider code
- * 3f23fd2 - 2017-12-11: refactored remaining database calls to use custom database calls
- * cf0821c - 2017-12-11: Fixed issue #151 - using unicode instead of str to result post-process results
......
......@@ -48,11 +48,4 @@ class CacheDB(srDatabase):
def __init__(self, name='cache'):
super(CacheDB, self).__init__(name)
self.old_db_path = os.path.join(sickrage.app.data_dir, 'cache.db')
def check_versions(self, index_name, current_version, previous_version):
# Wipe table if versions are different
if previous_version < current_version:
for x in self.all(index_name):
self.delete(x)
super(CacheDB, self).check_versions(index_name, current_version, previous_version)
self.old_db_path = os.path.join(sickrage.app.data_dir, 'cache.db')
\ No newline at end of file
......@@ -38,11 +38,4 @@ class FailedDB(srDatabase):
def __init__(self, name='failed'):
super(FailedDB, self).__init__(name)
self.old_db_path = os.path.join(sickrage.app.data_dir, 'failed.db')
def check_versions(self, index_name, current_version, previous_version):
# Wipe table if versions are different
if previous_version < current_version:
for x in self.all(index_name):
self.delete(x)
super(FailedDB, self).check_versions(index_name, current_version, previous_version)
\ No newline at end of file
self.old_db_path = os.path.join(sickrage.app.data_dir, 'failed.db')
\ No newline at end of file
Supports Markdown
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