mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-28 16:28:01 -05:00
Fix typo so we correctly calculate Subreddit traffic weights.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user