From 40c54af48243c09f26b0e8a3500c286118423ad4 Mon Sep 17 00:00:00 2001
From: HummyPkg <af123@hummypkg.org.uk>
Date: Wed, 22 Feb 2017 07:26:20 +0000
Subject: [PATCH] Allow re-submission of completed jobs

---
 webif/lib/queue.class | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/webif/lib/queue.class b/webif/lib/queue.class
index a10f650..90d9ec7 100644
--- a/webif/lib/queue.class
+++ b/webif/lib/queue.class
@@ -167,7 +167,7 @@ proc {queue resubmit} {id} {
 		update queue
 		set status = 'PENDING', interrupts = 0
 		where id = '%s'
-		and status in ('FAILED', 'HOLD')
+		and status in ('FAILED', 'HOLD', 'COMPLETE')
 	"
 
 	$db query $q $id