Skip to content

Commit 58f4bfc

Browse files
committed
Format with ruff
1 parent c8a3a80 commit 58f4bfc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bolt-jobs/bolt/jobs/models.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,9 @@ def mark_lost_jobs(self):
9090
# but if they're still running, we can't actually send a signal to cancel it...
9191
now = timezone.now()
9292
one_day_ago = now - datetime.timedelta(days=1)
93-
lost_jobs = self.filter(created_at__lt=one_day_ago) # Doesn't matter whether it started or not -- it shouldn't take this long.
93+
lost_jobs = self.filter(
94+
created_at__lt=one_day_ago
95+
) # Doesn't matter whether it started or not -- it shouldn't take this long.
9496
for job in lost_jobs:
9597
job.convert_to_result(
9698
ended_at=now,

0 commit comments

Comments
 (0)