From bbc0e8278520428c1eb78ae4a90abb7802ff116d Mon Sep 17 00:00:00 2001 From: fynnbe Date: Thu, 29 Feb 2024 00:08:57 +0100 Subject: [PATCH] fix sem_ver comparison --- backoffice/validate_format.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backoffice/validate_format.py b/backoffice/validate_format.py index b11da623..a3e686ee 100644 --- a/backoffice/validate_format.py +++ b/backoffice/validate_format.py @@ -235,7 +235,7 @@ def validate_format(staged: StagedVersion): rd.validation_summary.status = "passed" # passed in 'discover' mode if not isinstance(rd, InvalidDescr) and rd.sem_ver is not None: published = staged.get_published_versions() - if rd.sem_ver in {v["sem_ver"] for v in published.values()}: + if str(rd.sem_ver) in {v["sem_ver"] for v in published.values()}: error = ErrorEntry( loc=("sem_ver",), msg=f"Trying to publish semantic version {rd.sem_ver} again!",