rairo commited on
Commit
59192ef
·
verified ·
1 Parent(s): 02d40ba

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -1
main.py CHANGED
@@ -919,10 +919,11 @@ def approve_project_plan(project_id):
919
  "steps": final_steps,
920
  "selectedOption": selected_option or "",
921
  #update upcycling options to ensure only selected option persists
922
- "upcyclingOptions": None,
923
  "upcyclingOptions": [selected_option] if selected_option else []
924
  }
925
  project_ref.update(update_data)
 
926
  db_update_time = time.time() - db_update_start
927
  logger.info(f"[PROJECT APPROVAL] Database update completed in {db_update_time:.3f}s")
928
 
 
919
  "steps": final_steps,
920
  "selectedOption": selected_option or "",
921
  #update upcycling options to ensure only selected option persists
922
+
923
  "upcyclingOptions": [selected_option] if selected_option else []
924
  }
925
  project_ref.update(update_data)
926
+ logger.info(f"[PROJECT APPROVAL] uodating data in db: {update_data}")
927
  db_update_time = time.time() - db_update_start
928
  logger.info(f"[PROJECT APPROVAL] Database update completed in {db_update_time:.3f}s")
929