Skip to content
This repository
Browse code

Make /r/mod/about/spam also include filtered comments.

  • Loading branch information...
commit 1fd9a080b6fda313740cebfc44dda018af10a8b2 1 parent d260236
Chad Birch authored March 30, 2012 spladug committed April 03, 2012

Showing 1 changed file with 3 additions and 1 deletion. Show diff stats Hide diff stats

  1. 4  r2/r2/lib/db/queries.py
4  r2/r2/lib/db/queries.py
@@ -336,7 +336,9 @@ def get_spam_comments(sr_id):
336 336
 def get_spam(sr):
337 337
     if isinstance(sr, ModContribSR):
338 338
         srs = Subreddit._byID(sr.sr_ids, return_dict=False)
339  
-        results = [ get_spam_links(sr) for sr in srs ]
  339
+        results = []
  340
+        results.extend(get_spam_links(sr) for sr in srs)
  341
+        results.extend(get_spam_comments(sr) for sr in srs)
340 342
         return merge_results(*results)
341 343
     else:
342 344
         return merge_results(get_spam_links(sr),

0 notes on commit 1fd9a08

Please sign in to comment.
Something went wrong with that request. Please try again.