Improved twitter search on website.

This commit is contained in:
Armin Ronacher 2010-05-17 02:19:57 +02:00
parent 57e7db8b37
commit 33bb6dec37
2 changed files with 3 additions and 3 deletions

View file

@ -64,7 +64,7 @@ class SearchQuery(object):
return False
rv = json.load(urllib2.urlopen(self.get_url()))
return [SearchResult(x) for x in rv['results'] if
_accept(x['text'])]
_accept(x['from_user'] + u': ' + x['text'])]
@property
def up_to_date(self):

View file

@ -10,8 +10,8 @@ tweets = twitter.SearchQuery(required=['flask'],
optional=['code', 'web', 'python', 'py',
'pocoo', 'micro', 'mitsuhiko',
'framework', 'django', 'jinja',
'werkzeug', 'pylons'],
lang='en')
'werkzeug', 'documentation',
'app'])
@general.route('/')