From 46735fccf9aba11a0f50133d93ad0bd6c67ae7d6 Mon Sep 17 00:00:00 2001 From: Feramance Date: Thu, 16 Nov 2023 07:51:12 +0100 Subject: [PATCH] Changed missed search changes --- qBitrr/arss.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/qBitrr/arss.py b/qBitrr/arss.py index 061ec464..370d614b 100755 --- a/qBitrr/arss.py +++ b/qBitrr/arss.py @@ -2295,9 +2295,9 @@ def maybe_do_search( file_model.EntryId, file_model.AirDateUtc, ) - file_model.Searched = True - file_model.Upgrade = True - file_model.save(True) + self.model_file.update(Searched=True, Upgrade=True).where( + self.model_file.EntryId == file_model.EntryId + ).execute() return True active_commands = self.arr_db_query_commands_count() self.logger.debug( @@ -2419,9 +2419,9 @@ def maybe_do_search( file_model.TmdbId, file_model.EntryId, ) - file_model.Searched = True - file_model.Upgrade = True - file_model.save(True) + self.model_file.update(Searched=True, Upgrade=True).where( + self.model_file.EntryId == file_model.EntryId + ).execute() return True active_commands = self.arr_db_query_commands_count() self.logger.debug(