Skip to content

Commit

Permalink
Update study endpoint paths
Browse files Browse the repository at this point in the history
  • Loading branch information
trevorbayless committed May 11, 2023
1 parent 21ab10e commit b497c07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions berserk/clients.py
Original file line number Diff line number Diff line change
Expand Up @@ -1606,15 +1606,15 @@ 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]:
"""Export all chapters of a study.
: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)


Expand Down

0 comments on commit b497c07

Please sign in to comment.