Skip to content

Commit

Permalink
Replaced bad variable name choice of list
Browse files Browse the repository at this point in the history
  • Loading branch information
geduldig committed Nov 18, 2013
1 parent a5707c7 commit b0543ea
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions TwitterGeoPics/SearchOldTweets.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ def process_tweet(status, photo_dir, stalk):
lookup_geocode(status)


def search_tweets(api, list, photo_dir, region, stalk, no_retweets, count):
"""Get tweets containing any words in 'list'."""
words = ' OR '.join(list)
def search_tweets(api, word_list, photo_dir, region, stalk, no_retweets, count):
"""Get tweets containing any words in 'word_list'."""
words = ' OR '.join(word_list)
params = {'q':words, 'count':count}
if region:
params['geocode'] = '%f,%f,%fkm' % region # lat,lng,radius
Expand Down
8 changes: 4 additions & 4 deletions TwitterGeoPics/StreamNewTweets.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ def process_tweet(status, photo_dir, stalk):
lookup_geocode(status)


def stream_tweets(api, list, photo_dir, region, stalk, no_retweets):
"""Get tweets containing any words in 'list' or that originate from 'region'."""
def stream_tweets(api, word_list, photo_dir, region, stalk, no_retweets):
"""Get tweets containing any words in 'word_list' or that originate from 'region'."""
params = {}
if list is not None:
words = ','.join(list)
if word_list is not None:
words = ','.join(word_list)
params['track'] = words
if region is not None:
params['locations'] = '%f,%f,%f,%f' % region
Expand Down

0 comments on commit b0543ea

Please sign in to comment.