Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix uuid endpoint #97

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions app.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ async def get_user_id() :

user_id = datastore.get_user_id(email)

return jsonify(user_id), 200
return jsonify({"user_id": user_id}), 200
except (KeyError, TypeError, ValueError, datastore.DatastoreError) as error:
print(error)
return jsonify([f"GetUserIdError: {str(error)}"]), 400
Expand Down Expand Up @@ -536,7 +536,7 @@ async def feedback_negative():
if inference_id and user_id and boxes :
connection = datastore.get_connection()
cursor = datastore.get_cursor(connection)
await datastore.save_annoted_feedback(inference_id, user_id, boxes)
await datastore.save_annoted_feedback(cursor, inference_id, user_id, boxes)
datastore.end_query(connection, cursor)
return jsonify([True]), 200
else:
Expand Down
Loading