We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c65625 commit 64ac150Copy full SHA for 64ac150
tsdapiclient/tools.py
@@ -93,6 +93,8 @@ def file_api_url(
93
if formid:
94
endpoint = f'{formid}/{endpoint}'
95
scheme = 'http' if env == 'dev' else 'https'
96
+ if page is not None:
97
+ return f"{scheme}://{host}/{page}"
98
path = os.path.normpath(f"{host}/{API_VERSION}/{pnum}/{service}/{endpoint}")
99
url = f'{scheme}://{path}'
100
if url.endswith('/'):
@@ -101,8 +103,6 @@ def file_api_url(
101
103
query_dict = {}
102
104
if per_page:
105
query_dict["per_page"] = per_page
- if page is not None:
- query_dict["page"] = page
106
if len(query_dict) > 0:
107
url += f'?{urlencode(query_dict)}'
108
0 commit comments