Skip to content

Commit

Permalink
Boolean fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Feramance committed Nov 15, 2023
1 parent b5495aa commit df158fc
Showing 1 changed file with 6 additions and 18 deletions.
24 changes: 6 additions & 18 deletions qBitrr/arss.py
Original file line number Diff line number Diff line change
Expand Up @@ -1924,12 +1924,8 @@ def db_update_single_series(
if searched:
to_update[self.model_file.Searched] = searched

upgrade = (
self.model_file.select(self.model_file.Upgrade)
.where(self.model_file.EntryId == EntryId)
.execute()
)
if upgrade:
if self.model_file.get(self.model_file.Upgrade == True):
upgrade = True
to_update[self.model_file.Upgrade] = upgrade

if request:
Expand Down Expand Up @@ -1997,12 +1993,8 @@ def db_update_single_series(
if searched:
to_update[self.series_file_model.Searched] = searched

upgrade = (
self.series_file_model.select(self.series_file_model.Upgrade)
.where(self.series_file_model.EntryId == EntryId)
.execute()
)
if upgrade:
if self.series_file_model.get(self.series_file_model.Upgrade == True):
upgrade = True
to_update[self.series_file_model.Upgrade] = upgrade

db_commands = self.series_file_model.insert(
Expand Down Expand Up @@ -2060,12 +2052,8 @@ def db_update_single_series(
if searched:
to_update[self.model_file.Searched] = searched

upgrade = (
self.model_file.select(self.model_file.Upgrade)
.where(self.model_file.EntryId == entryId)
.execute()
)
if upgrade:
if self.model_file.get(self.model_file.Upgrade == True):
upgrade = True
to_update[self.model_file.Upgrade] = upgrade

if request:
Expand Down

0 comments on commit df158fc

Please sign in to comment.