From 44ab6a709bbfabac1192a3b2cd3303c53b9566d2 Mon Sep 17 00:00:00 2001 From: stuppie Date: Thu, 8 Oct 2026 08:42:12 -0600 Subject: product model_dump_json(exclude={payouts, pop_financial}) --- generalresearch/models/thl/product.py | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/generalresearch/models/thl/product.py b/generalresearch/models/thl/product.py index 9d826fa..e7b4e31 100644 --- a/generalresearch/models/thl/product.py +++ b/generalresearch/models/thl/product.py @@ -1494,7 +1494,7 @@ class Product(BaseModel, validate_assignment=True): with rc.pipeline() as pipe: pipe.set( name=self.cache_key, - value=self.model_dump_json(), + value=self.model_dump_json(exclude={"payouts", "pop_financial"}), ex=timedelta(days=3), ) if self.balance is not None: diff --git a/pyproject.toml b/pyproject.toml index d7dec1b..1d5f903 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "generalresearch" -version = "3.7.1" +version = "3.7.2" description = "Python Utilities for General Research" readme = "README.md" requires-python = ">=3.14" -- cgit v1.2.3