Skip to content

Commit

Permalink
fix: int object has no attribute action (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
duhow authored Apr 23, 2024
1 parent 5977cb3 commit cdee922
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def monitor_queued_jobs():
if not jobs:
return

queued_jobs = [job for job in jobs if job.action == "queued"]
queued_jobs = [job for job in jobs.values() if job.action == "queued"]
job = min(queued_jobs, key=lambda x: x.time_start)
delay = (datetime.now() - job.time_start).seconds

Expand Down

0 comments on commit cdee922

Please sign in to comment.