Skip to content

Commit

Permalink
Adjust upgrade behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
Feramance committed Dec 9, 2024
1 parent e40ed6c commit 863d79e
Showing 1 changed file with 3 additions and 22 deletions.
25 changes: 3 additions & 22 deletions qBitrr/arss.py
Original file line number Diff line number Diff line change
Expand Up @@ -2379,14 +2379,7 @@ def db_update_single_series(
to_update[self.model_file.Searched] = searched

upgrade = False
try:
if self.model_file.get_or_none(
self.model_file.EntryId == EntryId
).Upgrade:
upgrade = True
to_update[self.model_file.Upgrade] = upgrade
except AttributeError:
pass
to_update[self.model_file.Upgrade] = upgrade

self.logger.debug(
"Updating database entry | %s | S%02dE%03d [Searched:%s][Upgrade:%s][QualityMet:%s][CustomFormatMet:%s]",
Expand Down Expand Up @@ -2553,14 +2546,7 @@ def db_update_single_series(
to_update[self.series_file_model.Searched] = searched

upgrade = False
try:
if self.series_file_model.get_or_none(
self.series_file_model.EntryId == EntryId
).Upgrade:
upgrade = True
to_update[self.series_file_model.Upgrade] = upgrade
except AttributeError:
pass
to_update[self.series_file_model.Upgrade] = upgrade

self.logger.debug(
"Updating database entry | %s [Searched:%s][Upgrade:%s]",
Expand Down Expand Up @@ -2737,12 +2723,7 @@ def db_update_single_series(
to_update[self.model_file.Searched] = searched

upgrade = False
try:
if self.model_file.get_or_none(self.model_file.EntryId == entryId).Upgrade:
upgrade = True
to_update[self.model_file.Upgrade] = upgrade
except AttributeError:
pass
to_update[self.model_file.Upgrade] = upgrade

if request:
to_update[self.model_file.IsRequest] = request
Expand Down

0 comments on commit 863d79e

Please sign in to comment.