mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-23 05:26:37 +00:00
Use timedelta
to avoid ValueError
This commit is contained in:
parent
4dc7243972
commit
af4f242b05
@ -404,7 +404,7 @@ class Source(db.models.Model):
|
||||
)
|
||||
elif Val(IndexSchedule.EVERY_7_DAYS) > self.index_schedule:
|
||||
self.target_schedule = advance_hour(
|
||||
when.replace(hour=1+when.hour),
|
||||
when + timezone.timedelta(hours=1),
|
||||
self.target_schedule.hour,
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user