Skip to content

Commit

Permalink
Error fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Feramance committed Nov 23, 2023
1 parent e211305 commit e6807ed
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions qBitrr/arss.py
Original file line number Diff line number Diff line change
Expand Up @@ -1171,11 +1171,11 @@ def db_reset__series_searched_state(self):
).execute()
try:
Ids = [id.Id for id in self.model_arr_series_file.select().execute()]
self.series_file_model.delete().where(
self.series_file_model.EntryId.not_in(Ids)
).execute()
except peewee.DatabaseError:
self.logger.error("Database disk image malformed")
self.series_file_model.delete().where(
self.series_file_model.EntryId.not_in(Ids)
).execute()

def db_reset__episode_searched_state(self):
self.model_file: EpisodeFilesModel
Expand All @@ -1187,9 +1187,9 @@ def db_reset__episode_searched_state(self):
).execute()
try:
Ids = [id.Id for id in self.model_arr_file.select().execute()]
self.model_file.delete().where(self.model_file.EntryId.not_in(Ids)).execute()
except peewee.DatabaseError:
self.logger.error("Database disk image malformed")
self.model_file.delete().where(self.model_file.EntryId.not_in(Ids)).execute()

def db_reset__movie_searched_state(self):
self.model_file: MoviesFilesModel
Expand All @@ -1201,9 +1201,9 @@ def db_reset__movie_searched_state(self):
).execute()
try:
Ids = [id.Id for id in self.model_arr_file.select().execute()]
self.model_file.delete().where(self.model_file.EntryId.not_in(Ids)).execute()
except peewee.DatabaseError:
self.logger.error("Database disk image malformed")
self.model_file.delete().where(self.model_file.EntryId.not_in(Ids)).execute()

def db_get_files_series(
self,
Expand Down

0 comments on commit e6807ed

Please sign in to comment.