fixup: readability

This commit is contained in:
tcely 2025-05-26 00:22:51 -04:00 committed by GitHub
parent de8d346d90
commit 32a3f015c6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -387,7 +387,7 @@ class Source(db.models.Model):
@property
def task_run_at_dt(self):
now = timezone.now()
if self.target_schedule > now:
if now < self.target_schedule:
return self.target_schedule
when = now.replace(minute=0, second=0, microsecond=0)
while when.hour != self.target_schedule.hour: