From 20061dffb346fe5af8cf86b61a42d97e754ddffe Mon Sep 17 00:00:00 2001 From: bsimpson63 Date: Fri, 9 Nov 2012 13:26:50 -0500 Subject: [PATCH] Fix typo so we correctly calculate Subreddit traffic weights. --- r2/r2/lib/promote.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/r2/r2/lib/promote.py b/r2/r2/lib/promote.py index b882025cc..0359a3760 100644 --- a/r2/r2/lib/promote.py +++ b/r2/r2/lib/promote.py @@ -663,7 +663,7 @@ def get_traffic_weights(srnames): for srname in srnames: if srname: res[srname] = (default_traffic / - weigh(PageviewsBySubreddit.history("day", sr.name))) + weigh(PageviewsBySubreddit.history("day", srname))) else: res[srname] = 1 return res