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
|
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user