From 0d957ecc4a01d27da591f3e9f0b79ed716024578 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Wed, 12 Jul 2023 16:18:56 +0200 Subject: [PATCH] fix strict mode --- ereuse_devicehub/resources/action/models.py | 2 +- ereuse_devicehub/resources/action/schemas.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ereuse_devicehub/resources/action/models.py b/ereuse_devicehub/resources/action/models.py index dfa87cb5..cc999136 100644 --- a/ereuse_devicehub/resources/action/models.py +++ b/ereuse_devicehub/resources/action/models.py @@ -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 diff --git a/ereuse_devicehub/resources/action/schemas.py b/ereuse_devicehub/resources/action/schemas.py index 5eba4a12..774f8da2 100644 --- a/ereuse_devicehub/resources/action/schemas.py +++ b/ereuse_devicehub/resources/action/schemas.py @@ -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(