mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-04-27 03:00:12 -04:00
Increase sr_pops limit and random_reddit limit to 2500.
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user