From b8037ed29968287771c13d7c5add0ccee7a73a83 Mon Sep 17 00:00:00 2001
From: Anne Tipka <anne.tipka@ctbto.org>
Date: Tue, 25 Oct 2022 21:28:31 +0000
Subject: [PATCH] if using oper without using eventid, basic job submit must be
 used

---
 Source/Python/submit.py | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/Source/Python/submit.py b/Source/Python/submit.py
index 3a75294..bcdf420 100755
--- a/Source/Python/submit.py
+++ b/Source/Python/submit.py
@@ -202,9 +202,11 @@ def submit(jtemplate, c, queue):
 
         mk_jobscript(jtemplate, job_file, clist)
 
-        #job_id = submit_job_to_ecserver(queue, job_file)
-        job_id = submit_eventjob_to_ecserver(queue, job_file, c.eventid ,
-                                             c.eventjobname, c.ecuid)
+        if not c.eventid:
+            job_id = submit_job_to_ecserver(queue, job_file)
+        else:
+            job_id = submit_eventjob_to_ecserver(queue, job_file, c.eventid,
+                                                 c.eventjobname, c.ecuid)
 
         print('The job id is: ' + str(job_id.strip()))
 
-- 
GitLab