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'],