Fixed Bug (getting images for analyze-center)
This commit is contained in:
parent
e8871f823e
commit
08fb19c6b9
@ -788,7 +788,7 @@ def genScores(G, books, calcPagerank=True):
|
||||
return globMu, globStd
|
||||
|
||||
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):
|
||||
term = name
|
||||
img = getWikiImage(term)
|
||||
|
Loading…
Reference in New Issue
Block a user