From e52f45006985078c20aa0031fa3f8f6e28d76fcb Mon Sep 17 00:00:00 2001 From: "Troll (Hermes Agent)" Date: Sat, 8 Aug 2026 18:04:01 +0000 Subject: [PATCH] Allow deleting jobs in any status including processing --- app.py | 3 --- templates/index.html | 8 +++----- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/app.py b/app.py index 37f6c5b..362128c 100644 --- a/app.py +++ b/app.py @@ -138,9 +138,6 @@ def delete_job(job_id): if job is None: flash('Job not found.', 'error') return redirect(url_for('index')) - if job['status'] == 'processing': - flash('Cannot delete a job that is currently processing.', 'error') - return redirect(url_for('index')) deleted = store.delete_job(job_id) if deleted: diff --git a/templates/index.html b/templates/index.html index 8f2857e..2cb5862 100644 --- a/templates/index.html +++ b/templates/index.html @@ -71,11 +71,9 @@ {% endif %} - {% if job.status != 'processing' %} -
- -
- {% endif %} +
+ +
{% endfor %}