This commit is contained in:
j 2018-08-06 19:19:20 +01:00
parent e3b4cda2a6
commit 6150d3323d

View file

@ -41,7 +41,11 @@ if __name__ == '__main__':
tree = defaultdict(dict) tree = defaultdict(dict)
for keyword in keywords: for keyword in keywords:
parent, child = keyword.split(': ') if ': ' not in keyword:
parent = 'other'
child = keyword
else:
parent, child = keyword.split(': ', 1)
path = find_path(parent) path = find_path(parent)
if path: if path:
p = tree p = tree