Pass max_id and since_id into ResultSet constructor.
authorJoshua Roesslein <jroesslein@gmail.com>
Mon, 10 Jun 2013 05:42:07 +0000 (22:42 -0700)
committerJoshua Roesslein <jroesslein@gmail.com>
Mon, 10 Jun 2013 05:42:07 +0000 (22:42 -0700)
tweepy/models.py

index fcccbf16a5b24564391e48a593af0f6777d3c2fb..8fca2dd5d1e6066efffc00942da61409b0e9b6eb 100644 (file)
@@ -245,9 +245,8 @@ class SearchResult(Model):
 
     @classmethod
     def parse_list(cls, api, json_list, result_set=None):
-        results = ResultSet()
-        results.max_id = json_list.get('max_id')
-        results.since_id = json_list.get('since_id')
+        results = ResultSet(json_list.get('max_id',
+                            json_list.get('since_id')))
         results.refresh_url = json_list.get('refresh_url')
         results.next_page = json_list.get('next_page')
         results.results_per_page = json_list.get('results_per_page')