From ea6946012817d9e834f06b3ffcead176d62d457a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=BCnk=C3=B6sd=20Marcell?= Date: Mon, 13 Apr 2020 00:24:33 +0200 Subject: [PATCH] Fixed returning supah-duppah response type --- src/resources.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/resources.py b/src/resources.py index 27f44a2..907bd09 100644 --- a/src/resources.py +++ b/src/resources.py @@ -99,7 +99,7 @@ class SampleResource(Resource): :return: """ samples = SampleMetadata.query.all() - return {"status": "ok", "message": jsonify(json_list=samples)}, 200 + return jsonify({"status": "ok", "message": list(samples)}), 200 class SampleParameterResource(Resource): @@ -114,4 +114,4 @@ class SampleParameterResource(Resource): :return: """ sample = SampleMetadata.query.filter_by(tag=tag).first_or_404() - return {"status": "ok", "message": jsonify(sample)}, 200 + return jsonify({"status": "ok", "message": sample}), 200