Fix error in player pagerank statistics
This commit is contained in:
parent
e6293eab50
commit
c125bdbe69
@ -220,7 +220,7 @@ def build_statistics_page(page, articles):
|
||||
if article.title in rank_by_article_all else 0)
|
||||
for addendum in article.addendums:
|
||||
addendum_title = "{0.title}-T{0.turn}".format(addendum)
|
||||
pagerank_by_player[addendum_title] += (rank_by_article_all[addendum_title]
|
||||
pagerank_by_player[addendum.player] += (rank_by_article_all[addendum_title]
|
||||
if addendum_title in rank_by_article_all else 0)
|
||||
for player in players:
|
||||
pagerank_by_player[player] = round(pagerank_by_player[player], 3)
|
||||
|
Loading…
Reference in New Issue
Block a user