From d76b0b8a9eba7c22846f584857f4acbd3401228d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Sat, 20 Jun 2020 20:15:15 +0200 Subject: [PATCH] s --- src/resources.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/resources.py b/src/resources.py index bf1e137..2ee8ec7 100644 --- a/src/resources.py +++ b/src/resources.py @@ -99,7 +99,7 @@ class SampleResource(Resource): :return: """ samples = SampleMetadata.query.all() - return self.samplemetadataschema.dumps(list(samples)), 200 + return self.samplemetadataschema.dump(list(samples)), 200 class SampleParameterResource(Resource): @@ -116,4 +116,4 @@ class SampleParameterResource(Resource): :return: """ sample = SampleMetadata.query.filter_by(tag=tag).first_or_404() - return self.samplemetadataschema.dumps(sample), 200 + return self.samplemetadataschema.dump(sample), 200