limit tag to 32 chars
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Torma Kristóf 2020-04-30 00:01:45 +02:00
parent 2e986eb29f
commit e756ff614a
Signed by: tormakris
GPG Key ID: DC83C4F2C41B1047

View File

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