Skip to content

Commit

Permalink
[build] Remove search on 0 commands
Browse files Browse the repository at this point in the history
  • Loading branch information
Feramance committed Sep 18, 2023
1 parent 6b6bf4a commit 44644a2
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 @@ -3725,14 +3725,11 @@ def run_search_loop(self) -> NoReturn:
if years.index(self.search_current_year) != years_count - 1:
years_index += 1
self.search_current_year = years[years_index]
elif self.arr_db_query_commands_count == 0:
else:
self.refresh_download_queue()
self.force_grab()
raise RestartLoopException
elif (
datetime.now() > (timer + loop_timer)
and self.arr_db_query_commands_count == 0
):
elif datetime.now() > (timer + loop_timer):
self.refresh_download_queue()
self.force_grab()
raise RestartLoopException
Expand Down

0 comments on commit 44644a2

Please sign in to comment.