From b497c0733a65cd0205ac4f3b26ef0dce5bc7f97e Mon Sep 17 00:00:00 2001 From: Trevor Bayless Date: Thu, 11 May 2023 16:03:59 -0500 Subject: [PATCH] Update study endpoint paths --- berserk/clients.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/berserk/clients.py b/berserk/clients.py index 4e6ab68..e2f1268 100644 --- a/berserk/clients.py +++ b/berserk/clients.py @@ -1606,7 +1606,7 @@ def export_chapter(self, study_id: str, chapter_id: str) -> str: :return: chapter PGN """ - path = f"/study/{study_id}/{chapter_id}.pgn" + path = f"api/study/{study_id}/{chapter_id}.pgn" return self._r.get(path, fmt=PGN) def export(self, study_id: str) -> Iterator[str]: @@ -1614,7 +1614,7 @@ def export(self, study_id: str) -> Iterator[str]: :return: iterator over all chapters as PGN """ - path = f"/study/{study_id}.pgn" + path = f"api/study/{study_id}.pgn" return self._r.get(path, fmt=PGN, stream=True)