From 0ced15df7bccf56ea297751f9f0bc54ef3d1a53a Mon Sep 17 00:00:00 2001 From: rlx Date: Mon, 6 Aug 2018 19:44:46 +0100 Subject: [PATCH] fix links --- ontology/ontology.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ontology/ontology.py b/ontology/ontology.py index 1a3945a..616fa63 100644 --- a/ontology/ontology.py +++ b/ontology/ontology.py @@ -88,9 +88,9 @@ for string in sorted(strings): parent_items[parts[-2]], parts[-2] ) if string in child_items: - parts_[-1] = '{}'.format( - site, parts[-2].replace(' ', '_'), parts[-1].replace(' ', '_'), - child_items[string], parts[-1] + parts_[-1] = '{}'.format( + site, '{}:_'.format(parts[-2].replace(' ', '_')) if parts[-2] != 'unknown' else '', + parts[-1].replace(' ', '_'), child_items[string], parts[-1] ) html.append(': '.join(parts_)) template = open('ontology_template.html').read()