Spaces:
Running
Running
Update main.py
Browse files
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 |
-
|
| 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 |
|