Skip to content

Commit

Permalink
fix: flake8 E999 SyntaxError (f-string)
Browse files Browse the repository at this point in the history
  • Loading branch information
Criamos committed Aug 30, 2024
1 parent c991bf7 commit a4388ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions converter/es_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -817,13 +817,13 @@ def init_api_client(self):
if "services" in about and about["services"]:
# edu-sharing API v6.x to v8.1 behavior: looking for the BULK v1 API "version"-dict
EduSharing.version = \
list(filter(lambda x: x["name"] == "BULK", about["services"]))[0]["instances"][0]["version"]
list(filter(lambda x: x["name"] == "BULK", about["services"]))[0]["instances"][0]["version"]
elif "version" in about and about["version"]:
# edu-sharing API v9.x behavior:
# we expect a "version"-dict to exist within the "about"-dict that might look like this:
# {'major': 1, 'minor': 1, 'renderservice': '9.0', 'repository': '9.0'}
EduSharing.version = about["version"]
version_str: str = f"{EduSharing.version["major"]}.{EduSharing.version["minor"]}"
version_str: str = f"{EduSharing.version['major']}.{EduSharing.version['minor']}"
if (
EduSharing.version["major"] != 1
or EduSharing.version["minor"] < 0
Expand Down

0 comments on commit a4388ea

Please sign in to comment.