From 469d7809b40662b907c832e029f11b22c3c5fe8f Mon Sep 17 00:00:00 2001 From: Ben Arc Date: Tue, 20 Apr 2021 12:16:36 +0100 Subject: [PATCH] fixed copilot get --- lnbits/extensions/copilot/views_api.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lnbits/extensions/copilot/views_api.py b/lnbits/extensions/copilot/views_api.py index bca40f86..c3abe5d6 100644 --- a/lnbits/extensions/copilot/views_api.py +++ b/lnbits/extensions/copilot/views_api.py @@ -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