aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstuppie2026-11-05 10:06:22 -0600
committerstuppie2026-11-05 10:06:22 -0600
commit1f92907691dbcc84cd8f09c30c2633e875a0f884 (patch)
tree30135ad56b6e5799af4261206133cbac28417afe
parentc41899d35daa7692dfdc4191697c1f82c66d326d (diff)
downloadgeneralresearch-4.0.3.tar.gz
generalresearch-4.0.3.zip
fix to_user_tx for gift_*HEADv4.0.3master
-rw-r--r--generalresearch/models/thl/ledger.py2
-rw-r--r--pyproject.toml2
2 files changed, 3 insertions, 1 deletions
diff --git a/generalresearch/models/thl/ledger.py b/generalresearch/models/thl/ledger.py
index fddd12b..cd47209 100644
--- a/generalresearch/models/thl/ledger.py
+++ b/generalresearch/models/thl/ledger.py
@@ -384,6 +384,8 @@ class LedgerTransaction(BaseModel):
d["description"] = "Tango"
elif payout_type == PayoutType.PAYPAL:
d["description"] = "PayPal"
+ elif payout_type in {PayoutType.GIFTBIT, PayoutType.GIFTRONAUT, PayoutType.GIFTED, PayoutType.VIRTUAL_INCENTIVES}:
+ d["description"] = payout_type.value
else:
raise ValueError(payout_type)
return UserLedgerTransactionUserPayout.model_validate(d)
diff --git a/pyproject.toml b/pyproject.toml
index 1e6e94e..5ff035e 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "generalresearch"
-version = "4.0.2"
+version = "4.0.3"
description = "Python Utilities for General Research"
readme = "README.md"
requires-python = ">=3.14"