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", diff --git a/src/pardner/services/tumblr.py b/src/pardner/services/tumblr.py index 4955005..c650051 100644 --- a/src/pardner/services/tumblr.py +++ b/src/pardner/services/tumblr.py @@ -121,14 +121,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(