rosemariafontana commited on
Commit
9847da9
·
verified ·
1 Parent(s): 1ec366d

Update process_data.py

Browse files
Files changed (1) hide show
  1. process_data.py +2 -2
process_data.py CHANGED
@@ -643,7 +643,7 @@ def parse_survey_stack(data):
643
  processed_data["input_text_pieces"]["treatment_data_input"] = trials_inputs.get('treatment_data_input', {}).get('value', None)
644
 
645
  print("NOW ONTO THE PROMPTS")
646
- input_item = data[0]['data']['schema_prompt']
647
  processed_data["prompts"]["first_schema_prompt_one"] = input_item.get('firstschemaprompt1', {}).get('value')
648
  processed_data["prompts"]["first_schema_prompt_two"] = input_item.get('firstschemaprompt2', {}).get('value')
649
  processed_data["prompts"]["first_schema_prompt_three"] = input_item.get('firstschemaprompt3', {}).get('value')
@@ -657,7 +657,7 @@ def parse_survey_stack(data):
657
  elif processed_data["inputstyle"] == "big-block-input-text":
658
  print("IN THE SINGLE")
659
  processed_data["input_text"] = data[0]['data']['onelonginputtext']['value']
660
- input_item = data[0]['data']['sections_prompt']
661
 
662
  print("Input Item")
663
  print(input_item)
 
643
  processed_data["input_text_pieces"]["treatment_data_input"] = trials_inputs.get('treatment_data_input', {}).get('value', None)
644
 
645
  print("NOW ONTO THE PROMPTS")
646
+ input_item = data[0]['data']['sections_prompt']
647
  processed_data["prompts"]["first_schema_prompt_one"] = input_item.get('firstschemaprompt1', {}).get('value')
648
  processed_data["prompts"]["first_schema_prompt_two"] = input_item.get('firstschemaprompt2', {}).get('value')
649
  processed_data["prompts"]["first_schema_prompt_three"] = input_item.get('firstschemaprompt3', {}).get('value')
 
657
  elif processed_data["inputstyle"] == "big-block-input-text":
658
  print("IN THE SINGLE")
659
  processed_data["input_text"] = data[0]['data']['onelonginputtext']['value']
660
+ input_item = data[0]['data']['schema_prompt']
661
 
662
  print("Input Item")
663
  print(input_item)