From 64a93f0874381d19212e1af4c0beacaeb36323d9 Mon Sep 17 00:00:00 2001 From: stuppie Date: Sun, 11 Oct 2026 13:42:05 -0600 Subject: fix gr user prefetch products --- generalresearch/models/gr/authentication.py | 4 ++-- pyproject.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/generalresearch/models/gr/authentication.py b/generalresearch/models/gr/authentication.py index 41c3eaa..142f842 100644 --- a/generalresearch/models/gr/authentication.py +++ b/generalresearch/models/gr/authentication.py @@ -176,9 +176,9 @@ class GRUser(BaseModel): pm = ProductManager(pg_config=thl_pg_config) business_products = ( - pm.fetch_uuids(business_uuids=business_uuids) if business_uuids else [] + pm.filter_paginated(business_uuids=business_uuids) if business_uuids else [] ) - team_products = pm.fetch_uuids(team_uuids=team_uuids) if team_uuids else [] + team_products = pm.filter_paginated(team_uuids=team_uuids) if team_uuids else [] products = {p.id: p for p in business_products + team_products} self.products = sorted(products.values(), key=lambda x: x.created) diff --git a/pyproject.toml b/pyproject.toml index d1b13e7..5839d26 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "generalresearch" -version = "3.7.5" +version = "3.7.6" description = "Python Utilities for General Research" readme = "README.md" requires-python = ">=3.14" -- cgit v1.2.3