mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-25 06:26:37 +00:00
fixup: readability
This commit is contained in:
parent
de8d346d90
commit
32a3f015c6
@ -387,7 +387,7 @@ class Source(db.models.Model):
|
|||||||
@property
|
@property
|
||||||
def task_run_at_dt(self):
|
def task_run_at_dt(self):
|
||||||
now = timezone.now()
|
now = timezone.now()
|
||||||
if self.target_schedule > now:
|
if now < self.target_schedule:
|
||||||
return self.target_schedule
|
return self.target_schedule
|
||||||
when = now.replace(minute=0, second=0, microsecond=0)
|
when = now.replace(minute=0, second=0, microsecond=0)
|
||||||
while when.hour != self.target_schedule.hour:
|
while when.hour != self.target_schedule.hour:
|
||||||
|
Loading…
Reference in New Issue
Block a user