1
0
mirror of https://github.com/hwchase17/langchain.git synced 2025-09-18 16:16:33 +00:00

Fixed regression in JoplinLoader's get note url ()

Fixes a regression in JoplinLoader that was introduced during the code
review (bad `page` wildcard in _get_note_url).

## Who can review?

Community members can review the PR once tests pass. Tag
maintainers/contributors who might be interested:

@dev2049
@leo-gan
This commit is contained in:
Alon Diament
2023-05-25 23:10:10 +03:00
committed by GitHub
parent 3be9ba14f3
commit d3cd21ccf8

@@ -36,7 +36,7 @@ class JoplinLoader(BaseLoader):
base_url = f"http://{host}:{port}"
self._get_note_url = (
f"{base_url}/notes?token={access_token}"
"&fields=id,parent_id,title,body,created_time,updated_time&page={{page}}"
f"&fields=id,parent_id,title,body,created_time,updated_time&page={{page}}"
)
self._get_folder_url = (
f"{base_url}/folders/{{id}}?token={access_token}&fields=title"