From cfd7d5dda5d5af6aa82d620246f9313e7dbc7b3a Mon Sep 17 00:00:00 2001 From: Narek Mkhitaryan Date: Thu, 20 Mar 2025 16:03:41 +0400 Subject: [PATCH] fix in set_score --- src/superannotate/__init__.py | 2 +- src/superannotate/lib/core/entities/work_managament.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/superannotate/__init__.py b/src/superannotate/__init__.py index 6127fd2a9..267471d95 100644 --- a/src/superannotate/__init__.py +++ b/src/superannotate/__init__.py @@ -3,7 +3,7 @@ import sys -__version__ = "4.4.33dev3" +__version__ = "4.4.33dev6" os.environ.update({"sa_version": __version__}) diff --git a/src/superannotate/lib/core/entities/work_managament.py b/src/superannotate/lib/core/entities/work_managament.py index 6664164a9..40aff7cb5 100644 --- a/src/superannotate/lib/core/entities/work_managament.py +++ b/src/superannotate/lib/core/entities/work_managament.py @@ -197,7 +197,7 @@ def validate_weight(cls, v): raise AppException("Please provide a valid number greater than 0") return v - @root_validator(pre=True) + @root_validator() def check_weight_and_value(cls, values): value = values.get("value") weight = values.get("weight")