Spaces:
Sleeping
Sleeping
Update chatbot.py
Browse files- chatbot.py +4 -1
chatbot.py
CHANGED
@@ -363,7 +363,10 @@ Let's start by exploring your innovative idea! What's the name of your idea, or
|
|
363 |
return form_data.get(stage, "")
|
364 |
|
365 |
def update_form_field(self, stage_name: str, value: str):
|
366 |
-
|
|
|
|
|
|
|
367 |
try:
|
368 |
# Create a new session for this operation
|
369 |
new_session = SessionLocal()
|
|
|
363 |
return form_data.get(stage, "")
|
364 |
|
365 |
def update_form_field(self, stage_name: str, value: str):
|
366 |
+
field_name = stage_name.lower().replace(" ", "_")
|
367 |
+
if field_name == 'team_roles':
|
368 |
+
value = value.split(',') # Convert string to list for team_roles
|
369 |
+
setattr(self.idea_form, field_name, value)
|
370 |
try:
|
371 |
# Create a new session for this operation
|
372 |
new_session = SessionLocal()
|