From e6807ed0ffe7960dd28750a98183462954a86836 Mon Sep 17 00:00:00 2001 From: Feramance Date: Thu, 23 Nov 2023 23:48:32 +0100 Subject: [PATCH] Error fix --- qBitrr/arss.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/qBitrr/arss.py b/qBitrr/arss.py index 56bd3a48..75e375bf 100755 --- a/qBitrr/arss.py +++ b/qBitrr/arss.py @@ -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 @@ -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 @@ -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,