From dc28ca97d98b4cf87845b97d9085c02c6100f2c6 Mon Sep 17 00:00:00 2001 From: star-nox Date: Mon, 11 Sep 2023 14:59:56 -0500 Subject: [PATCH] investigate data --- ai_ta_backend/main.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ai_ta_backend/main.py b/ai_ta_backend/main.py index 5e05684a..6f60d388 100644 --- a/ai_ta_backend/main.py +++ b/ai_ta_backend/main.py @@ -405,6 +405,15 @@ def logToNomic(): print("conversation: ", conversation) print("print json: ", request.get_json()) + data = request.get_json() + print(len(data)) + print(type(data)) + + course_name = data['course_name'] + conversation = data['conversation'] + + print("course_name: ", course_name) + print("conversation: ", conversation) if course_name == '' or conversation == '': # proper web error "400 Bad request"