Skip to content

Commit

Permalink
[build] Potential final fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Feramance committed Sep 20, 2023
1 parent b547e53 commit eeba1e3
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions qBitrr/arss.py
Original file line number Diff line number Diff line change
Expand Up @@ -1425,7 +1425,7 @@ def db_update(self):
if self.type == "sonarr":
if not self.series_search:
self.model_arr_file: EpisodesModel
Ids = list(self.model_arr_file.select(self.model_arr_file.Id).execute())
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()
_series = set()
if self.search_by_year:
Expand Down Expand Up @@ -1472,9 +1472,7 @@ def db_update(self):
self.db_update_single_series(db_entry=series)
else:
self.model_arr_series_file: SeriesModel
Ids = list(
self.model_arr_series_file.select(self.model_arr_series_file.Id).execute()
)
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()
Expand All @@ -1490,7 +1488,6 @@ def db_update(self):
elif self.version == "5":
self.model_arr_file: MoviesModelv5
Ids = [id.Id for id in self.model_arr_file.select().execute()]
self.logger.info("Current Id List: %s", Ids)
self.model_file.delete().where(self.model_file.EntryId.not_in(Ids)).execute()
if self.search_by_year:
for movies in (
Expand Down

0 comments on commit eeba1e3

Please sign in to comment.