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

This commit is contained in:
Torma Kristóf 2020-04-27 12:43:26 +02:00
parent fcbd0e9426
commit 15909a46b3
Signed by: tormakris
GPG Key ID: DC83C4F2C41B1047
2 changed files with 2 additions and 7 deletions

View File

@ -10,4 +10,3 @@ xeger
pika
psycopg2-binary
marshmallow
flask-serialize

View File

@ -28,8 +28,6 @@ class SampleResource(Resource):
Sample endpoint
See: https://swagger.kmlabz.com/?urls.primaryName=Input%20Service
"""
samplemetadatas_schema = SampleMetadata(many=True,
exclude=['id', 'device_id', 'device_date', 'tag', 'timestamp'])
def post(self):
"""
@ -107,8 +105,6 @@ class SampleParameterResource(Resource):
Sample endpoint with parameters
"""
samplemetadata_schema = SampleMetadata(many=False)
def get(self, tag: str):
"""
Get a specific item
@ -116,4 +112,4 @@ class SampleParameterResource(Resource):
:return:
"""
sample = SampleMetadata.query.filter_by(tag=tag).first_or_404()
return self.samplemetadata_schema.dump(sample), 200
return sample, 200