From e9dd55a35f2354c4afc8858f9d04bd76a5463e1b Mon Sep 17 00:00:00 2001 From: Drew Short Date: Tue, 15 May 2018 22:16:41 -0500 Subject: [PATCH] server: fix return_json method return values --- server/atheneum/api.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server/atheneum/api.py b/server/atheneum/api.py index 588c790..e8469e1 100644 --- a/server/atheneum/api.py +++ b/server/atheneum/api.py @@ -30,8 +30,7 @@ def return_json(func: Callable) -> Callable: if isinstance(result, Response): return result if isinstance(result, APIMessage): - response = jsonify(result.payload) - response.status = result.status + return jsonify(result.payload), result.status return jsonify(result) return decorate