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