diff --git a/berserk/clients.py b/berserk/clients.py index 816e0b9..e2f1268 100644 --- a/berserk/clients.py +++ b/berserk/clients.py @@ -563,7 +563,7 @@ def export_multi( :param opening: whether to include the opening name :return: iterator over the exported games, as JSON or PGN """ - path = "games/export/_ids" + path = "api/games/export/_ids" params = { "moves": moves, "tags": tags, @@ -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)