Skip to content

Commit

Permalink
investigate data
Browse files Browse the repository at this point in the history
  • Loading branch information
star-nox committed Sep 11, 2023
1 parent 61068f8 commit dc28ca9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ai_ta_backend/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit dc28ca9

Please sign in to comment.