From e756ff614aac0bb21f9bd95976d0e1cd4278fda7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Thu, 30 Apr 2020 00:01:45 +0200 Subject: [PATCH] limit tag to 32 chars --- src/resources.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/resources.py b/src/resources.py index 8f002b1..62ba783 100644 --- a/src/resources.py +++ b/src/resources.py @@ -59,7 +59,7 @@ class SampleResource(Resource): return {'err_msg': 'Input JSON schema invalid'}, 417 xeger = Xeger(limit=30) - generated_tag = xeger.xeger(r'^[a-zA-Z]+[0-9a-zA-Z_]*$') + generated_tag = xeger.xeger(r'^[a-zA-Z]+[0-9a-zA-Z_]*$')[:32] record = SampleMetadata( device_id=desc['device_id'],