diff options
| author | stuppie | 2026-10-27 13:41:48 -0600 |
|---|---|---|
| committer | stuppie | 2026-10-27 13:41:48 -0600 |
| commit | 684d022b276d0ed3d9f2528fcb6c9740bea8180c (patch) | |
| tree | 45a876c641cb5ba86ffdbe56271a2f834d3cd8e9 | |
| parent | a0e32d620ec91cd5e5a877c3220eeb176de8b07b (diff) | |
| download | generalresearch-3.9.5.tar.gz generalresearch-3.9.5.zip | |
fix User.from_db optional fieldsv3.9.5
| -rw-r--r-- | generalresearch/models/thl/user.py | 6 | ||||
| -rw-r--r-- | pyproject.toml | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/generalresearch/models/thl/user.py b/generalresearch/models/thl/user.py index 5f4cd73..8a98da4 100644 --- a/generalresearch/models/thl/user.py +++ b/generalresearch/models/thl/user.py @@ -309,9 +309,9 @@ class User(BaseModel): blocked=bool(res["blocked"]), created=res["created"], last_seen=res["last_seen"], - last_offerwall_requested_at=res["last_offerwall_requested_at"], - last_profiling_submission_at=res["last_profiling_submission_at"], - last_task_completed_at=res["last_task_completed_at"], + last_offerwall_requested_at=res.get("last_offerwall_requested_at"), + last_profiling_submission_at=res.get("last_profiling_submission_at"), + last_task_completed_at=res.get("last_task_completed_at"), ) diff --git a/pyproject.toml b/pyproject.toml index 3d5e7f3..3e86956 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "generalresearch" -version = "3.9.4" +version = "3.9.5" description = "Python Utilities for General Research" readme = "README.md" requires-python = ">=3.14" |
