aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstuppie2026-10-05 13:11:32 -0600
committerstuppie2026-10-05 13:11:32 -0600
commit63af4c157242c140c99a60ebdb3724d7aa41db61 (patch)
tree3366b6677ef2bfaf509aff9711e9ab1f5e9cb44a
parentf7d6c62ce0a02542f3ea2953ecb96a2900638934 (diff)
downloadgeneralresearch-63af4c157242c140c99a60ebdb3724d7aa41db61.tar.gz
generalresearch-63af4c157242c140c99a60ebdb3724d7aa41db61.zip
dont attempt prebuild_private_balance unless prebuild_balance had a result
-rw-r--r--generalresearch/models/thl/product.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/generalresearch/models/thl/product.py b/generalresearch/models/thl/product.py
index 2f95f0f..a9024e3 100644
--- a/generalresearch/models/thl/product.py
+++ b/generalresearch/models/thl/product.py
@@ -1212,6 +1212,7 @@ class Product(BaseModel, validate_assignment=True):
"bp_adjustment.DEBIT",
],
filters=filters,
+ include_partial=True
)
df = client.compute(collections=ddf, sync=True)
if df.empty:
@@ -1474,9 +1475,10 @@ class Product(BaseModel, validate_assignment=True):
self.prefetch_bp_account(thl_lm=thl_lm)
self.prebuild_balance(thl_lm=thl_lm, client=client, pop_ledger=pop_ledger)
- self.prebuild_private_balance(
- thl_lm=thl_lm, client=client, pop_ledger=pop_ledger
- )
+ if self.balance:
+ self.prebuild_private_balance(
+ thl_lm=thl_lm, client=client, pop_ledger=pop_ledger
+ )
if self.user_wallet_enabled:
self.prebuild_user_wallet_balances(client=client, pop_ledger=pop_ledger)
self.prebuild_payouts(thl_lm=thl_lm, bp_pem=bp_pem)