diff --git a/.github/workflows/mirror_to_gitlab.yml b/.github/workflows/mirror_to_gitlab.yml index b100359..bc52920 100644 --- a/.github/workflows/mirror_to_gitlab.yml +++ b/.github/workflows/mirror_to_gitlab.yml @@ -12,7 +12,7 @@ jobs: - name: Mirror + trigger CI uses: SvanBoxel/gitlab-mirror-and-ci-action@master with: - args: "https://git-dmz.thuenen.de/kida/i2-skills-beratungsstelle/scraibe" + args: "https://git-dmz.thuenen.de/kida/i2-skills-beratungsstelle/active-service-requests/scraibe/scraibe" env: FOLLOW_TAGS: "true" FORCE_PUSH: "true" diff --git a/scraibe/transcript_exporter.py b/scraibe/transcript_exporter.py index 5222d58..dbd599b 100644 --- a/scraibe/transcript_exporter.py +++ b/scraibe/transcript_exporter.py @@ -300,7 +300,7 @@ class Transcript: raise ValueError("Unknown file format") @classmethod - def from_json(cls, json: Union[dict, str]) -> "Transcript": + def from_json(cls, _json: Union[dict, str]) -> "Transcript": """Load transcript from json file Args: @@ -309,13 +309,13 @@ class Transcript: Returns: Transcript: Transcript object """ - if isinstance(json, dict): - return cls(json) + if isinstance(_json, dict): + return cls(_json) else: try: - transcript = json.loads(json) + transcript = json.loads(_json) except (TypeError, JSONDecodeError): - with open(json, "r") as f: + with open(_json, "r") as f: transcript = json.load(f) return cls(transcript)