Skip to content

Commit

Permalink
close issue ckoepp#10
Browse files Browse the repository at this point in the history
  • Loading branch information
ckoepp committed Aug 22, 2013
1 parent 2bf8b01 commit e244641
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions TwitterSearch/TwitterSearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,7 @@ def sentSearch(self, url):
self.__statistics['tweets'] += len(self.__response['content']['statuses'])

# if we've seen the correct amount of tweets there may be some more
if len(self.__response['content']) > 0 and
int(self.__response['content']['search_metadata']['count']) == given_count:
if len(self.__response['content']['statuses']) > 0 and int(self.__response['content']['search_metadata']['count']) == given_count:
self.__nextMaxID = min(self.__response['content']['statuses'], key=lambda i: i['id'])['id'] - 1

else: # we got less tweets than requested -> no more results in API
Expand Down

0 comments on commit e244641

Please sign in to comment.