This commit is contained in:
parent
6300aa6b4a
commit
d76b0b8a9e
@ -99,7 +99,7 @@ class SampleResource(Resource):
|
|||||||
:return:
|
:return:
|
||||||
"""
|
"""
|
||||||
samples = SampleMetadata.query.all()
|
samples = SampleMetadata.query.all()
|
||||||
return self.samplemetadataschema.dumps(list(samples)), 200
|
return self.samplemetadataschema.dump(list(samples)), 200
|
||||||
|
|
||||||
|
|
||||||
class SampleParameterResource(Resource):
|
class SampleParameterResource(Resource):
|
||||||
@ -116,4 +116,4 @@ class SampleParameterResource(Resource):
|
|||||||
:return:
|
:return:
|
||||||
"""
|
"""
|
||||||
sample = SampleMetadata.query.filter_by(tag=tag).first_or_404()
|
sample = SampleMetadata.query.filter_by(tag=tag).first_or_404()
|
||||||
return self.samplemetadataschema.dumps(sample), 200
|
return self.samplemetadataschema.dump(sample), 200
|
||||||
|
Loading…
Reference in New Issue
Block a user