smol bug fix

This commit is contained in:
Dominik Moritz Roth 2022-02-06 18:28:35 +01:00
parent 3032dea8a0
commit 936558779b

View File

@ -818,7 +818,12 @@ def recommenderCompetence(G):
for n in list(G.nodes):
node = G.nodes[n]
if node['t'] == 'recommender':
node['score'] -= node['se'] * 1
if 'se' in node:
node['score'] -= node['se'] * 1
else:
if not node['score']:
node['score'] = 0
node['score'] /= 2
def readBooksAnalysis(G, minRating=0, showAllTags=True, removeUnconnected=False, removeTopListsB=True):
removeUnread(G)