From c125bdbe69ae55b9a95e5e99f563277c23574618 Mon Sep 17 00:00:00 2001 From: Tim Van Baak Date: Sun, 4 Nov 2018 00:58:07 -0700 Subject: [PATCH] Fix error in player pagerank statistics --- src/build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/build.py b/src/build.py index 1fe8a6e..7e74214 100644 --- a/src/build.py +++ b/src/build.py @@ -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)