Update process_data.py
Browse files- process_data.py +4 -4
process_data.py
CHANGED
|
@@ -552,15 +552,15 @@ def parse_survey_stack_data(data):
|
|
| 552 |
interactions_inputs = data[0]['data']['group_5']
|
| 553 |
print("INTERACTIONS INPUTS" + str(interactions_inputs))
|
| 554 |
processed_data["input_text_pieces_second_schema"] = {}
|
| 555 |
-
processed_data["input_text_pieces_second_schema"]["interaction_data_input"] =
|
| 556 |
-
processed_data["input_text_pieces_second_schema"]["person_data_input"] =
|
| 557 |
|
| 558 |
print("NEXT SCHEMA INPUTS 2")
|
| 559 |
trials_inputs = data[0]['data']['group_6']
|
| 560 |
print("TRIALS INPUTS" + str(trials_inputs))
|
| 561 |
processed_data["input_text_pieces_third_schema"] = {}
|
| 562 |
-
processed_data["input_text_pieces_third_schema"]["trial_data_input"] =
|
| 563 |
-
processed_data["input_text_pieces_third_schema"]["treatment_data_input"] =
|
| 564 |
|
| 565 |
|
| 566 |
elif processed_data["stepwise_json_creation"][0] == "singlejsoncreation":
|
|
|
|
| 552 |
interactions_inputs = data[0]['data']['group_5']
|
| 553 |
print("INTERACTIONS INPUTS" + str(interactions_inputs))
|
| 554 |
processed_data["input_text_pieces_second_schema"] = {}
|
| 555 |
+
processed_data["input_text_pieces_second_schema"]["interaction_data_input"] = interactions_inputs.get('interaction_data_input', {}).get('value', None)
|
| 556 |
+
processed_data["input_text_pieces_second_schema"]["person_data_input"] = interactions_inputs.get('person_data_input', {}).get('value', None)
|
| 557 |
|
| 558 |
print("NEXT SCHEMA INPUTS 2")
|
| 559 |
trials_inputs = data[0]['data']['group_6']
|
| 560 |
print("TRIALS INPUTS" + str(trials_inputs))
|
| 561 |
processed_data["input_text_pieces_third_schema"] = {}
|
| 562 |
+
processed_data["input_text_pieces_third_schema"]["trial_data_input"] = trials_inputs.get('trial_data_input', {}).get('value', None)
|
| 563 |
+
processed_data["input_text_pieces_third_schema"]["treatment_data_input"] = trials_inputs.get('treatment_data_input', {}).get('value', None)
|
| 564 |
|
| 565 |
|
| 566 |
elif processed_data["stepwise_json_creation"][0] == "singlejsoncreation":
|