Fix error in player pagerank statistics

This commit is contained in:
Tim Van Baak 2018-11-04 00:58:07 -07:00
parent e6293eab50
commit c125bdbe69

View File

@ -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)