Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
dat-boris committed Jan 7, 2024
1 parent 8b2e897 commit 4bba757
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions berserk/clients/studies.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,12 @@ def export_by_username(self, username: str) -> Iterator[str]:
yield from self._r.get(path, fmt=PGN, stream=True)

def import_pgn(
self, study_id: str, chapter_name: str, pgn: str,
orientation: str = "white", variant: str = "standard"
self,
study_id: str,
chapter_name: str,
pgn: str,
orientation: str = "white",
variant: str = "standard",
) -> Iterator[Dict[str, str]]:
"""Imports arbitrary PGN into an existing study.
Creates a new chapter in the study.
Expand All @@ -54,6 +58,4 @@ def import_pgn(
}
# The return is of the form:
# {chapters:[{id: "chapterId", name: "chapterName"}]}
yield from (
c for c in self._r.post(path, data=payload).get("chapters", [])
)
yield from (c for c in self._r.post(path, data=payload).get("chapters", []))

0 comments on commit 4bba757

Please sign in to comment.