Skip to content

Commit

Permalink
[patch] Minimum availability fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Feramance committed Jan 8, 2024
1 parent 937390c commit f457257
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qBitrr/arss.py
Original file line number Diff line number Diff line change
Expand Up @@ -1753,7 +1753,7 @@ def minimum_availability_check(
db_entry["physicalRelease"] if "physicalRelease" in db_entry else None,
)
return False
elif "digitalRelease" in db_entry:
elif "physicalRelease" in db_entry:
if (
datetime.strptime(db_entry["physicalRelease"], "%Y-%m-%dT%H:%M:%SZ")
<= datetime.now()
Expand Down Expand Up @@ -1840,7 +1840,7 @@ def minimum_availability_check(
return False
elif "physicalRelease" in db_entry:
if (
datetime.strptime(db_entry["digitalRelease"], "%Y-%m-%dT%H:%M:%SZ")
datetime.strptime(db_entry["physicalRelease"], "%Y-%m-%dT%H:%M:%SZ")
<= datetime.now()
):
self.logger.trace(
Expand Down

0 comments on commit f457257

Please sign in to comment.