Update process_data.py
Browse files- process_data.py +3 -3
process_data.py
CHANGED
|
@@ -619,7 +619,7 @@ def parse_survey_stack(data):
|
|
| 619 |
|
| 620 |
if processed_data["inputstyle"] == "individual-pieces-input-text":
|
| 621 |
print("IN THE STEP")
|
| 622 |
-
farm_management_inputs = data[0]['data']['
|
| 623 |
print("FARM MANAGEMENT INPUTS" + str(farm_management_inputs))
|
| 624 |
|
| 625 |
processed_data["input_text_pieces"] = {}
|
|
@@ -631,13 +631,13 @@ def parse_survey_stack(data):
|
|
| 631 |
processed_data["input_text"] = "EMPTY"
|
| 632 |
|
| 633 |
print("NEXT SCHEMA INPUTS")
|
| 634 |
-
interactions_inputs = data[0]['data']['
|
| 635 |
print("INTERACTIONS INPUTS" + str(interactions_inputs))
|
| 636 |
processed_data["input_text_pieces"]["interaction_data_input"] = interactions_inputs.get('interaction_data_input', {}).get('value', None)
|
| 637 |
processed_data["input_text_pieces"]["person_data_input"] = interactions_inputs.get('person_data_input', {}).get('value', None)
|
| 638 |
|
| 639 |
print("NEXT SCHEMA INPUTS 2")
|
| 640 |
-
trials_inputs = data[0]['data']['
|
| 641 |
print("TRIALS INPUTS" + str(trials_inputs))
|
| 642 |
processed_data["input_text_pieces"]["trial_data_input"] = trials_inputs.get('trial_data_input', {}).get('value', None)
|
| 643 |
processed_data["input_text_pieces"]["treatment_data_input"] = trials_inputs.get('treatment_data_input', {}).get('value', None)
|
|
|
|
| 619 |
|
| 620 |
if processed_data["inputstyle"] == "individual-pieces-input-text":
|
| 621 |
print("IN THE STEP")
|
| 622 |
+
farm_management_inputs = data[0]['data']['interview']
|
| 623 |
print("FARM MANAGEMENT INPUTS" + str(farm_management_inputs))
|
| 624 |
|
| 625 |
processed_data["input_text_pieces"] = {}
|
|
|
|
| 631 |
processed_data["input_text"] = "EMPTY"
|
| 632 |
|
| 633 |
print("NEXT SCHEMA INPUTS")
|
| 634 |
+
interactions_inputs = data[0]['data']['summary']
|
| 635 |
print("INTERACTIONS INPUTS" + str(interactions_inputs))
|
| 636 |
processed_data["input_text_pieces"]["interaction_data_input"] = interactions_inputs.get('interaction_data_input', {}).get('value', None)
|
| 637 |
processed_data["input_text_pieces"]["person_data_input"] = interactions_inputs.get('person_data_input', {}).get('value', None)
|
| 638 |
|
| 639 |
print("NEXT SCHEMA INPUTS 2")
|
| 640 |
+
trials_inputs = data[0]['data']['trial']
|
| 641 |
print("TRIALS INPUTS" + str(trials_inputs))
|
| 642 |
processed_data["input_text_pieces"]["trial_data_input"] = trials_inputs.get('trial_data_input', {}).get('value', None)
|
| 643 |
processed_data["input_text_pieces"]["treatment_data_input"] = trials_inputs.get('treatment_data_input', {}).get('value', None)
|