Skip to content

Commit

Permalink
caused by unnecessary instance refs. deleted those refs which should …
Browse files Browse the repository at this point in the history
…solve the issue
  • Loading branch information
lzehl committed Jul 25, 2023
1 parent 48413a4 commit 049ebfd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pipeline/instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@ def __init__(self, instances_file_paths:List, version):
elif split_path[3] == "graphStructures" and split_path[6].endswith(".jsonld"):
instance_shortName = instance_payload["shortName"]
relative_path = os.path.join("target", self.version, "docs", "libraries", split_path[4], instance_shortName)
else:
elif split_path[3] == "terminologies":
relative_path = os.path.join("target", self.version, "docs", "libraries", split_path[3], split_path[4])
else:
pass

self.instances_collection[instance_id] = instance_payload
if relative_path in self.target_paths_for_instances:
Expand Down Expand Up @@ -61,7 +63,6 @@ def _build_single_version_link(self, versionReference:Dict, include_shortName=Fa
label = id_label.split("_")[0]
if version_id in self.instances_collection:
version_data = self.instances_collection[version_id]
print(version_data)
title = version_data["shortName"]
subtitle = version_data["versionIdentifier"] if "versionIdentifier" in version_data and version_data["versionIdentifier"] else id_label
subtitle_url = subtitle.replace(' ', '-').replace(',', '-').replace('.', '-').replace('--', '-').casefold()
Expand Down

0 comments on commit 049ebfd

Please sign in to comment.