Fixed Bug (getting images for analyze-center)

This commit is contained in:
Dominik Moritz Roth 2022-02-11 14:07:51 +01:00
parent e8871f823e
commit 08fb19c6b9

View File

@ -788,7 +788,7 @@ def genScores(G, books, calcPagerank=True):
return globMu, globStd return globMu, globStd
def addImageToNode(node, cache, shape='circularImage'): def addImageToNode(node, cache, shape='circularImage'):
name = node['label'].split(' (')[0] name = node['label'].split(' (')[0].replace('*','')
if not name in cache or (cache[name]==False and random.random()<0.05): if not name in cache or (cache[name]==False and random.random()<0.05):
term = name term = name
img = getWikiImage(term) img = getWikiImage(term)