def _get_tweets(locale=settings.LANGUAGE_CODE, limit=MAX_TWEETS, max_id=None, reply_to=None, filter=None, https=False):
 locale = settings.LOCALES[locale].iso639_1
 created_limit = (datetime.now() - timedelta(days=settings.CC_TWEETS_DAYS))
 q = Tweet.objects.filter(locale=locale, reply_to=reply_to, created__gt=created_limit)
 if max_id:
  q = q.filter(pk__lt=max_id)
 if (filter != 'all'):
  q = q.filter(hidden=False)
 if (filter == 'unanswered'):
  q = q.filter(replies__pk__isnull=True)
 elif (filter == 'answered'):
  q = q.filter(replies__pk__isnull=False)
 if limit:
  q = q[:limit]
 return [_tweet_for_template(tweet, https) for tweet in q]

def _get_tweets ( locale = settings . LANGUAGE_CODE , limit = MAX_TWEETS , max_id = None , reply_to = None , filter = None , https = False ) : locale = settings . LOCALES [ locale ] . iso639_1 created_limit = ( datetime . now ( ) - timedelta ( days = settings . CC_TWEETS_DAYS ) ) q = Tweet . objects . filter ( locale = locale , reply_to = reply_to , created__gt = created_limit ) if max_id : q = q . filter ( pk__lt = max_id ) if ( filter != 'all' ) : q = q . filter ( hidden = False ) if ( filter == 'unanswered' ) : q = q . filter ( replies__pk__isnull = True ) elif ( filter == 'answered' ) : q = q . filter ( replies__pk__isnull = False ) if limit : q = q [ : limit ] return [ _tweet_for_template ( tweet , https ) for tweet in q ]
fetch a list of tweets .