Skip to content

Commit

Permalink
Fixed correct date usage for minimum availability
Browse files Browse the repository at this point in the history
  • Loading branch information
Feramance committed Jan 3, 2024
1 parent 0b9e61d commit 0201f2c
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 @@ -1692,7 +1692,7 @@ def minimum_availability_check(
) and db_entry.MinimumAvailability == 3:
if metadata.DigitalRelease is not None:
if (
datetime.strptime(metadata.DigitalRelease[:19], "%Y-%m-%d %H:%M:%S")
datetime.strptime(metadata.PhysicalRelease[:19], "%Y-%m-%d %H:%M:%S")
<= datetime.now()
):
self.logger.trace(
Expand All @@ -1716,7 +1716,7 @@ def minimum_availability_check(
return False
else:
if (
datetime.strptime(metadata.PhysicalRelease[:19], "%Y-%m-%d %H:%M:%S")
datetime.strptime(metadata.DigitalRelease[:19], "%Y-%m-%d %H:%M:%S")
<= datetime.now()
):
self.logger.trace(
Expand Down

0 comments on commit 0201f2c

Please sign in to comment.