Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
10 changes: 4 additions & 6 deletions src/pardner/services/tumblr.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down