fixed copilot get
This commit is contained in:
parent
fe6e6764fa
commit
469d7809b4
1 changed files with 2 additions and 1 deletions
|
|
@ -76,7 +76,7 @@ async def api_copilot_retrieve(copilot_id):
|
||||||
return jsonify({"message": "copilot does not exist"}), HTTPStatus.NOT_FOUND
|
return jsonify({"message": "copilot does not exist"}), HTTPStatus.NOT_FOUND
|
||||||
|
|
||||||
return (
|
return (
|
||||||
jsonify({copilot._asdict()}),
|
jsonify(copilot._asdict()),
|
||||||
HTTPStatus.OK,
|
HTTPStatus.OK,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
@ -101,5 +101,6 @@ async def api_copilot_ws_relay(copilot_id, comment, data):
|
||||||
if not copilot:
|
if not copilot:
|
||||||
return jsonify({"message": "copilot does not exist"}), HTTPStatus.NOT_FOUND
|
return jsonify({"message": "copilot does not exist"}), HTTPStatus.NOT_FOUND
|
||||||
await updater(data, comment, copilot_id)
|
await updater(data, comment, copilot_id)
|
||||||
|
print("updated")
|
||||||
return "", HTTPStatus.OK
|
return "", HTTPStatus.OK
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue