Skip to content

Commit

Permalink
fixing type error
Browse files Browse the repository at this point in the history
  • Loading branch information
lzehl committed Jul 14, 2023
1 parent 1b71d7f commit 1da1068
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pipeline/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def build(self):
with open(target_file, "w") as output_file:
doc = RstCloth(output_file, line_width=100000)
schema_name = self._schema_payload["name"]
schema_name_camelCase = "".join([schema_name[0].lower, schema_name[1:]])
schema_name_camelCase = "".join([schema_name[0].lower(), schema_name[1:]])
doc.heading(schema_name, char="#", overline=True)
doc.newline()
doc.field(name="Semantic name:", value=self._schema_payload["_type"])
Expand All @@ -37,7 +37,7 @@ def build(self):
if semantic_equivalent:
doc.field(name="Semantic equivalents:", value=semantic_equivalent)
doc.newline()
doc.newline()# https://openminds-documentation.readthedocs.io/en/latest/libraries/terminologies/actionStatusType.html#actionstatustype
doc.newline()
if "controlledTerms" in self._schema_payload["name"]:
library_subdir = f"terminologies/{schema_name_camelCase}.html"
library_link = os.path.join(self.readthedocs_url, self.version, "libraries", library_subdir)
Expand Down

0 comments on commit 1da1068

Please sign in to comment.