From cdee922204b7059a30bac532d4042617308ee350 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Gir=C3=B3n?= Date: Tue, 23 Apr 2024 15:56:56 +0200 Subject: [PATCH] fix: int object has no attribute action (#20) --- src/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app.py b/src/app.py index 2b16d30..781561e 100644 --- a/src/app.py +++ b/src/app.py @@ -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