From 8b5c9c4c1af9bf34916cdec74f881016f44588d9 Mon Sep 17 00:00:00 2001
From: Maximilian Gruber <maximilian.gruber@ptb.de>
Date: Tue, 23 Jan 2024 12:52:30 +0100
Subject: [PATCH] wip: debugging result state

---
 app/main.py | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/app/main.py b/app/main.py
index 88c0aba..20b3f04 100644
--- a/app/main.py
+++ b/app/main.py
@@ -54,12 +54,11 @@ def cocal_task(db, state, cocal_session):
     cocal = cocal_methods.CocalMethods(cocal_session)
 
     # record reference
-    cocal.record_and_save_reference()
+    #cocal.record_and_save_reference()
 
     # wait for user upload to finish
     upload_is_ready = cocal.wait_for_user_upload(timeout=10)
 
-    
     # continue 
     if upload_is_ready:
         
@@ -77,7 +76,6 @@ def cocal_task(db, state, cocal_session):
         # set result status
         cocal_session.result_state = "ready"
         cocal_session.result_date = datetime.datetime.now()
-        cocal_session.commit()
         db.commit()
 
     # log timeout error if no upload available
-- 
GitLab