From: Joshua Roesslein Date: Tue, 11 Jun 2013 03:33:31 +0000 (-0700) Subject: Fix a bug with setting max_id / since_id on a ResultSet. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=aedd73cf3d448cefd10777e56ee19141de8c8d82;p=tweepy.git Fix a bug with setting max_id / since_id on a ResultSet. --- diff --git a/tweepy/models.py b/tweepy/models.py index d536f1b..3442790 100644 --- a/tweepy/models.py +++ b/tweepy/models.py @@ -233,10 +233,8 @@ class SearchResults(ResultSet): @classmethod def parse(cls, api, json): - results = SearchResults() metadata = json['search_metadata'] - results.max_id = metadata.get('max_id') - results.since_id = metadata.get('since_id') + results = SearchResults(metadata.get('max_id'), metadata.get('since_id')) results.refresh_url = metadata.get('refresh_url') results.completed_in = metadata.get('completed_in') results.query = metadata.get('query')