From 0e42f05b343e889d70bfa0ba437860c382a7d4c6 Mon Sep 17 00:00:00 2001 From: kshitijrajsharma Date: Thu, 21 Dec 2023 23:25:28 +0545 Subject: [PATCH] Fix bug on geometry type --- src/validation/models.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/validation/models.py b/src/validation/models.py index 6ec2c92d..0ea0219b 100644 --- a/src/validation/models.py +++ b/src/validation/models.py @@ -163,7 +163,9 @@ class RawDataCurrentParamsBase(BaseModel): @validator("geometry_type", allow_reuse=True) def return_unique_value(cls, value): """return unique list""" - return list(set(value)) + if value: + return list(set(value)) + return value class RawDataCurrentParams(RawDataCurrentParamsBase):