Update process_data.py
Browse files- process_data.py +12 -0
process_data.py
CHANGED
|
@@ -274,10 +274,22 @@ def parse_survey_stack_parameters(data):
|
|
| 274 |
# processed_data["chaining"] = None
|
| 275 |
# processed_data["combined_pre_prompt"] = None
|
| 276 |
|
|
|
|
|
|
|
|
|
|
| 277 |
try:
|
| 278 |
parameters_json = json.loads(data)
|
| 279 |
pre_promp_parameters = parameters_json['data']['group_2']
|
| 280 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 281 |
if pre_promp_parameters['preprompt']['value'][0] == 'continue_preprompts':
|
| 282 |
processed_data["pre_prompt"] = True
|
| 283 |
|
|
|
|
| 274 |
# processed_data["chaining"] = None
|
| 275 |
# processed_data["combined_pre_prompt"] = None
|
| 276 |
|
| 277 |
+
print("DATA: ")
|
| 278 |
+
print(data)
|
| 279 |
+
|
| 280 |
try:
|
| 281 |
parameters_json = json.loads(data)
|
| 282 |
pre_promp_parameters = parameters_json['data']['group_2']
|
| 283 |
|
| 284 |
+
print("PARAMETERS JSON:")
|
| 285 |
+
print(parameters_json)
|
| 286 |
+
|
| 287 |
+
print("PRE_PROMP PARAMETERS")
|
| 288 |
+
print(pre_promp_parameters)
|
| 289 |
+
|
| 290 |
+
print("PREPROMPT PARAMETERS")
|
| 291 |
+
print(pre_promp_parameters['preprompt'])
|
| 292 |
+
|
| 293 |
if pre_promp_parameters['preprompt']['value'][0] == 'continue_preprompts':
|
| 294 |
processed_data["pre_prompt"] = True
|
| 295 |
|