def make_subreddit_traffic_report(subreddits=None, num=None):
 if subreddits:
  subreddit_summary = traffic.PageviewsBySubreddit.last_month(subreddits)
 else:
  subreddit_summary = traffic.PageviewsBySubreddit.top_last_month(num)
 report = []
 for (srname, data) in subreddit_summary:
  if (srname == _DefaultSR.name):
   name = _('[frontpage]')
   url = None
  elif (srname in Subreddit._specials):
   name = ('[%s]' % srname)
   url = None
  else:
   name = ('/r/%s' % srname)
   url = (name + '/about/traffic')
  report.append(((name, url), data))
 return report

def make_subreddit_traffic_report ( subreddits = None , num = None ) : if subreddits : subreddit_summary = traffic . PageviewsBySubreddit . last_month ( subreddits ) else : subreddit_summary = traffic . PageviewsBySubreddit . top_last_month ( num ) report = [ ] for ( srname , data ) in subreddit_summary : if ( srname == _DefaultSR . name ) : name = _ ( '[frontpage]' ) url = None elif ( srname in Subreddit . _specials ) : name = ( '[%s]' % srname ) url = None else : name = ( '/r/%s' % srname ) url = ( name + '/about/traffic' ) report . append ( ( ( name , url ) , data ) ) return report
return a report of subreddit traffic in the last full month .