Skip to content

Commit

Permalink
[build] Delete deleted fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Feramance committed Sep 20, 2023
1 parent 28b28c0 commit 1dc7fba
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions qBitrr/arss.py
Original file line number Diff line number Diff line change
Expand Up @@ -1426,7 +1426,9 @@ def db_update(self):
if not self.series_search:
self.model_arr_file: EpisodesModel
self.file_model: EpisodeFilesModel
Ids = self.model_arr_file.select(self.model_arr_file.Id)
Ids = [
id for id in self.model_arr_file.select(self.model_arr_file.Id).execute()
]
self.file_model.delete().where(self.file_model.EntryId.not_in(Ids)).execute()
_series = set()
if self.search_by_year:
Expand Down Expand Up @@ -1474,7 +1476,12 @@ def db_update(self):
else:
self.model_arr_series_file: SeriesModel
self.series_file_model: SeriesFilesModel
Ids = self.model_arr_series_file.select(self.model_arr_series_file.Id)
Ids = [
id
for id in self.model_arr_series_file.select(
self.model_arr_series_file.Id
).execute()
]
self.series_file_model.delete().where(
self.series_file_model.EntryId.not_in(Ids)
).execute()
Expand All @@ -1490,7 +1497,7 @@ def db_update(self):
elif self.version == "5":
self.model_arr_file: MoviesModelv5
self.model_file: MoviesFilesModel
Ids = self.model_arr_file.select(self.model_arr_file.Id)
Ids = [id for id in self.model_arr_file.select(self.model_arr_file.Id).execute()]
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 1dc7fba

Please sign in to comment.