workers fix

This commit is contained in:
JiriUhlir
2026-05-29 10:40:15 +02:00
parent 48a9b20379
commit 3804bb32c4
3 changed files with 12 additions and 12 deletions
+2 -2
View File
@@ -49,7 +49,7 @@ def workers_page(request: Request, user=Depends(require_user)):
rows = ""
for worker in workers:
worker_id_raw = worker.get("worker_id", "") or ""
worker_id_raw = worker.get("id", "") or ""
worker_id = html.escape(worker_id_raw)
worker_url_id = quote(worker_id_raw, safe="")
status = html.escape(worker.get("status", "") or "")
@@ -124,7 +124,7 @@ def worker_detail_page(worker_id: str, request: Request, user=Depends(require_us
target_id=worker_id,
)
worker_id_html = html.escape(worker.get("worker_id", "") or "")
worker_id_html = html.escape(worker.get("id", "") or "")
status = html.escape(worker.get("status", "") or "")
last_seen_at = html.escape(worker.get("last_seen_at", "") or "")
started_at = html.escape(worker.get("started_at", "") or "")