mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-29 08:48:18 -05:00
Count subreddits (not properties) in the multi subreddit limit.
This commit is contained in:
@@ -1361,12 +1361,14 @@ class LabeledMulti(tdb_cassandra.Thing, MultiReddit):
|
||||
remaining = self.MAX_SR_COUNT + 10
|
||||
sr_columns = {}
|
||||
for k, v in self._t.iteritems():
|
||||
if not k.startswith(self.SR_PREFIX):
|
||||
continue
|
||||
|
||||
sr_columns[k] = v
|
||||
|
||||
remaining -= 1
|
||||
if remaining <= 0:
|
||||
break
|
||||
remaining -= 1
|
||||
|
||||
if k.startswith(self.SR_PREFIX):
|
||||
sr_columns[k] = v
|
||||
return self.columns_to_sr_props(sr_columns)
|
||||
|
||||
@property
|
||||
|
||||
Reference in New Issue
Block a user