Increase sr_pops limit and random_reddit limit to 2500.

This commit is contained in:
Jason Harvey
2012-11-16 11:27:17 -08:00
parent 1ff7ba8657
commit 81c7c1a57d
2 changed files with 2 additions and 2 deletions

View File

@@ -27,7 +27,7 @@ from r2.lib.utils import fetch_things2, flatten
from r2.lib.memoize import memoize
# the length of the stored per-language list
limit = 1000
limit = 2500
def set_downs():
sr_counts = count.get_sr_counts()

View File

@@ -605,7 +605,7 @@ class Subreddit(Thing, Printable):
return random.sample(sr_ids, limit)
@classmethod
def random_reddit(cls, limit = 1000, over18 = False):
def random_reddit(cls, limit = 2500, over18 = False):
srs = cls.top_lang_srs(c.content_langs, limit,
filter_allow_top = False,
over18 = over18,