From b240b8c7c68a85b4cb9f0969e36228324484c1f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aar=C3=B3n=20Ayerdis=20Espinoza?= Date: Thu, 5 Mar 2026 17:34:04 -0600 Subject: [PATCH 1/2] Fix Tumblr fetch when text_only=False --- src/pardner/services/tumblr.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/pardner/services/tumblr.py b/src/pardner/services/tumblr.py index 9dad6b5..ce1ea1f 100644 --- a/src/pardner/services/tumblr.py +++ b/src/pardner/services/tumblr.py @@ -71,14 +71,12 @@ def fetch_social_posting_vertical( made. """ if count <= 20: + params: dict[str, Any] = {'limit': count, 'npf': True, **request_params} + if text_only: + params['type'] = 'text' dashboard_response = self._get_resource_from_path( 'user/dashboard', - { - 'limit': count, - 'npf': True, - 'type': 'text' if text_only else '', - **request_params, - }, + params, ) return list(dashboard_response.json().get('response').get('posts')) raise UnsupportedRequestException( From 999fb39332cf940a3910ecc563bee59e25e917be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aar=C3=B3n=20Ayerdis=20Espinoza?= Date: Thu, 5 Mar 2026 20:44:50 -0600 Subject: [PATCH 2/2] Cap Python to <3.14 for pydantic-core compatibility --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 6b51f5d..e995bfd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,7 +7,7 @@ name = "pardner" version = "0.0.1" description = "Python library for authorizing access and fetching personal data from portability APIs and services" readme = "README.md" -requires-python = ">=3.11" +requires-python = ">=3.11,<3.14" classifiers = [ "Programming Language :: Python :: 3", "Operating System :: OS Independent",