From d3cd21ccf89b05bbe9af083234209f63c9986db6 Mon Sep 17 00:00:00 2001 From: Alon Diament Date: Thu, 25 May 2023 23:10:10 +0300 Subject: [PATCH] Fixed regression in JoplinLoader's get note url (#5265) 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 --- langchain/document_loaders/joplin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/langchain/document_loaders/joplin.py b/langchain/document_loaders/joplin.py index 865a699739..0dc6730672 100644 --- a/langchain/document_loaders/joplin.py +++ b/langchain/document_loaders/joplin.py @@ -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"