sviddo commited on
Commit
25e7060
1 Parent(s): d3354cd

return result of 'process_user_message' from endpoint

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -124,7 +124,7 @@ async def num_one(request: Request):
124
  message_data = ast.literal_eval(data_dict.get('message_data', '').get('message_body', ''))
125
  user_id = message_data['user_id']
126
  message_text = message_data['message_text']
127
- print(num_one_quiz.process_user_message(user_id, message_text)) # from mathactive repo
128
 
129
 
130
  @app.post("/start")
 
124
  message_data = ast.literal_eval(data_dict.get('message_data', '').get('message_body', ''))
125
  user_id = message_data['user_id']
126
  message_text = message_data['message_text']
127
+ return num_one_quiz.process_user_message(user_id, message_text)
128
 
129
 
130
  @app.post("/start")