fixed copilot get

This commit is contained in:
Ben Arc
2021-04-20 12:16:36 +01:00
parent fe6e6764fa
commit 469d7809b4

View File

@@ -76,7 +76,7 @@ async def api_copilot_retrieve(copilot_id):
return jsonify({"message": "copilot does not exist"}), HTTPStatus.NOT_FOUND
return (
jsonify({copilot._asdict()}),
jsonify(copilot._asdict()),
HTTPStatus.OK,
)
@@ -101,5 +101,6 @@ async def api_copilot_ws_relay(copilot_id, comment, data):
if not copilot:
return jsonify({"message": "copilot does not exist"}), HTTPStatus.NOT_FOUND
await updater(data, comment, copilot_id)
print("updated")
return "", HTTPStatus.OK