From c78d987c722153e84a48d40f3048b16cc29e9afc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Mon, 19 Oct 2020 22:34:41 +0200 Subject: [PATCH] device id should be integer --- src/schemas.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/schemas.py b/src/schemas.py index 2dc8ab1..0dc11f4 100644 --- a/src/schemas.py +++ b/src/schemas.py @@ -21,11 +21,11 @@ class SampleSchema(ma.Schema): """ Parameters: - date (date) - - device_id (str) + - device_id (int) """ date = fields.DateTime(required=True) - device_id = fields.Str(required=True) + device_id = fields.Integer(required=True) class SampleMetadataSchema(ma.SQLAlchemyAutoSchema):