Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -917,10 +917,7 @@ def approve_project_plan(project_id):
|
|
| 917 |
"status": "ready",
|
| 918 |
"toolsList": tools_list,
|
| 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}")
|
|
|
|
| 917 |
"status": "ready",
|
| 918 |
"toolsList": tools_list,
|
| 919 |
"steps": final_steps,
|
| 920 |
+
"selectedOption": selected_option or ""
|
|
|
|
|
|
|
|
|
|
| 921 |
}
|
| 922 |
project_ref.update(update_data)
|
| 923 |
logger.info(f"[PROJECT APPROVAL] uodating data in db: {update_data}")
|