aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstuppie2026-11-03 14:58:32 -0600
committerstuppie2026-11-03 14:58:32 -0600
commit9d45ab4727d682340f0ee23968d4dbc77c14b95b (patch)
treecfff8d1b1052ae86a974f5b702c672bbc4ecd043
parent74f4a19f0e9d2af1643183afb14813b92afd577c (diff)
downloadgeneralresearch-4.0.0.tar.gz
generalresearch-4.0.0.zip
fix bug in DynataSurvey validation on category_idsv4.0.0
-rw-r--r--generalresearch/models/dynata/survey.py8
-rw-r--r--pyproject.toml2
2 files changed, 5 insertions, 5 deletions
diff --git a/generalresearch/models/dynata/survey.py b/generalresearch/models/dynata/survey.py
index 6ff397f..035bf0d 100644
--- a/generalresearch/models/dynata/survey.py
+++ b/generalresearch/models/dynata/survey.py
@@ -439,10 +439,10 @@ class DynataSurvey(MarketplaceTask):
return s
@field_validator("category_ids", mode="before")
- def split_category_ids(cls, v: object) -> object:
- if isinstance(v, str):
- return v.split("|")
- return v
+ def split_category_ids(cls, value: object) -> object:
+ if isinstance(value, str):
+ return value.replace("|", ",").split(",") if value else []
+ return value
@model_validator(mode="before")
@classmethod
diff --git a/pyproject.toml b/pyproject.toml
index 291e926..5857cf8 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "generalresearch"
-version = "3.9.9"
+version = "4.0.0"
description = "Python Utilities for General Research"
readme = "README.md"
requires-python = ">=3.14"