fixing bugs

This commit is contained in:
Cayo Puigdefabregas 2020-12-01 15:45:19 +01:00
parent 92c403579b
commit 70733db95d
2 changed files with 2 additions and 2 deletions

View file

@ -31,7 +31,7 @@ def upgrade():
op.drop_table('allocate', schema=f'{get_inv()}') op.drop_table('allocate', schema=f'{get_inv()}')
op.create_table('allocate', op.create_table('allocate',
sa.Column('final_user_code', citext.CIText(), default='', nullable=True, sa.Column('final_user_code', citext.CIText(), default='', nullable=True,
comment = "This is a internal code for mainteing the secrets of the personal datas of the new holder") comment = "This is a internal code for mainteing the secrets of the personal datas of the new holder"),
sa.Column('transaction', citext.CIText(), nullable=True, comment='The code used from the owner for relation with external tool.'), sa.Column('transaction', citext.CIText(), nullable=True, comment='The code used from the owner for relation with external tool.'),
sa.Column('end_users', sa.Numeric(precision=4), nullable=True), sa.Column('end_users', sa.Numeric(precision=4), nullable=True),
sa.Column('id', postgresql.UUID(as_uuid=True), nullable=False), sa.Column('id', postgresql.UUID(as_uuid=True), nullable=False),

View file

@ -71,7 +71,7 @@ class Allocate(ActionWithMultipleDevices):
description=m.Action.start_time.comment) description=m.Action.start_time.comment)
end_time = DateTime(data_key='endTime', required=False, end_time = DateTime(data_key='endTime', required=False,
description=m.Action.end_time.comment) description=m.Action.end_time.comment)
final_user_code = SanitizedStr(data_key="finalUserCode" final_user_code = SanitizedStr(data_key="finalUserCode",
validate=Length(min=1, max=STR_BIG_SIZE), validate=Length(min=1, max=STR_BIG_SIZE),
required=False, required=False,
description='This is a internal code for mainteing the secrets of the \ description='This is a internal code for mainteing the secrets of the \