Now with the ability to handle multiple custom question in the data export

This commit is contained in:
2024-04-07 11:57:44 -04:00
parent 2514106476
commit 00471df086
2 changed files with 19 additions and 6 deletions

View File

@@ -41,12 +41,11 @@ class Event_Exhibit_Tracking_Base(BaseModel):
exhibitor_notes: Optional[str]
responses_json: Optional[Json] # NOTE: Responses to custom questions
# responses_json: Json = [{'test': ''}] # NOTE: Responses to custom questions
# responses_json: Optional[Json] = Field(
# default_factory = lambda:[{'test': ''}]
# )
data_json: Optional[Json]
# data_json: Optional[str]
# Example:
# {"5_years": {"response": "I see myself in 5 years doing something."}, "colors": {"response": "green"}}
# {"example_text": {"response": "This is an example of an text answer."}, "example_option_list": {"response": "no"}, "the_code": {"response": "yes"}, "question_everything": {"response": "tomorrow"}, "pre_assesment": {"response": "yes"}}
data_json: Optional[Json] # NOTE: Additional data
enable: Optional[bool]
hide: Optional[bool]