From be3d5810a715965d6316bd739ed802e9dc6ef042 Mon Sep 17 00:00:00 2001 From: star-nox Date: Mon, 11 Sep 2023 14:08:06 -0500 Subject: [PATCH] added get_json() --- ai_ta_backend/main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ai_ta_backend/main.py b/ai_ta_backend/main.py index 2a056787..0dc1e496 100644 --- a/ai_ta_backend/main.py +++ b/ai_ta_backend/main.py @@ -404,6 +404,8 @@ def logToNomic(): print("course_name: ", course_name) print("conversation: ", conversation) + print(request.get_json()) + if course_name == '' or conversation == '': # proper web error "400 Bad request" abort(