Fixed returning supah-duppah response type
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Pünkösd Marcell 2020-04-13 00:24:33 +02:00
parent 89639a1c4e
commit ea69460128

View File

@ -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