Links with | now parsed

This commit is contained in:
Ozbolt Menegatti 2018-10-29 12:43:07 +01:00
parent 52e6fc92c6
commit 319800e0ca

View File

@ -349,6 +349,10 @@ class Word:
self.links[link].append(to) self.links[link].append(to)
def get_links(self, link): def get_links(self, link):
if link not in self.links and "|" in link:
for l in link.split('|'):
self.links[link].extend(self.links[l])
return self.links[link] return self.links[link]