Fixed returning supah-duppah response type
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
89639a1c4e
commit
ea69460128
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user