Skip to content

Commit

Permalink
Radarr request query adjustements
Browse files Browse the repository at this point in the history
  • Loading branch information
Feramance committed Dec 6, 2024
1 parent 48ffcbf commit a19e08c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions qBitrr/arss.py
Original file line number Diff line number Diff line change
Expand Up @@ -1660,8 +1660,7 @@ def db_get_request_files(self) -> Iterable[tuple[MoviesFilesModel | EpisodeFiles
.execute()
)
elif self.type == "radarr":
condition = self.model_file.Year <= datetime.now().year
condition &= self.model_file.Year > 0
condition = self.model_file.IsRequest is True
if self.do_upgrade_search:
condition &= self.model_file.Upgrade == False
else:
Expand All @@ -1684,7 +1683,6 @@ def db_get_request_files(self) -> Iterable[tuple[MoviesFilesModel | EpisodeFiles
)
else:
condition &= self.model_file.MovieFileId == 0
condition &= self.model_file.IsRequest is True
entries = list(
self.model_file.select()
.where(condition)
Expand Down

0 comments on commit a19e08c

Please sign in to comment.