s
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Torma Kristóf 2020-06-20 20:15:15 +02:00
parent 6300aa6b4a
commit d76b0b8a9e
Signed by: tormakris
GPG Key ID: DC83C4F2C41B1047

View File

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