From: Joshua Roesslein Date: Mon, 10 Jun 2013 05:42:07 +0000 (-0700) Subject: Pass max_id and since_id into ResultSet constructor. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=4d75a024daf1d4654ff5dbf8346f9090f7858180;p=tweepy.git Pass max_id and since_id into ResultSet constructor. --- diff --git a/tweepy/models.py b/tweepy/models.py index fcccbf1..8fca2dd 100644 --- a/tweepy/models.py +++ b/tweepy/models.py @@ -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')