Skip to content

Commit

Permalink
Todays condition update
Browse files Browse the repository at this point in the history
  • Loading branch information
Feramance committed Jan 16, 2024
1 parent 50ee8ee commit 3bd26ed
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions qBitrr/arss.py
Original file line number Diff line number Diff line change
Expand Up @@ -1291,6 +1291,9 @@ def db_get_files_series(
todays_condition &= self.model_file.AirDateUtc > (
datetime.now(timezone.utc) - timedelta(days=1)
)
todays_condition &= self.model_file.AirDateUtc < (
datetime.now(timezone.utc) - timedelta(hours=1)
)
condition &= self.model_file.AirDateUtc < (
datetime.now(timezone.utc) - timedelta(days=1)
)
Expand Down Expand Up @@ -1341,6 +1344,9 @@ def db_get_files_episodes(
today_condition &= self.model_file.AirDateUtc > (
datetime.now(timezone.utc) - timedelta(days=1)
)
today_condition &= self.model_file.AirDateUtc < (
datetime.now(timezone.utc) - timedelta(hours=1)
)
condition &= self.model_file.AirDateUtc < (
datetime.now(timezone.utc) - timedelta(days=1)
)
Expand Down

0 comments on commit 3bd26ed

Please sign in to comment.