fix strict mode

This commit is contained in:
Cayo Puigdefabregas 2023-07-12 16:18:56 +02:00
parent a7f9b8b725
commit 0d957ecc4a
2 changed files with 2 additions and 2 deletions

View File

@ -740,7 +740,7 @@ class Snapshot(JoinedWithOneDeviceMixin, ActionWithOneDevice):
"""
uuid = Column(UUID(as_uuid=True), unique=True)
version = Column(StrictVersionType(STR_SM_SIZE), nullable=False)
version = Column(Unicode(STR_SM_SIZE), nullable=False)
software = Column(DBEnum(SnapshotSoftware), nullable=False)
elapsed = Column(Interval)
elapsed.comment = """For Snapshots made with Workbench, the total amount

View File

@ -442,7 +442,7 @@ class Snapshot(ActionWithOneDevice):
required=True,
description='The software that generated this Snapshot.',
)
version = Version(required=True, description='The version of the software.')
version = String(required=True, description='The version of the software.')
actions = NestedOn(Action, many=True, dump_only=True)
elapsed = TimeDelta(precision=TimeDelta.SECONDS)
components = NestedOn(