projects
/
tweepy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b3a9cc0
)
Pass max_id and since_id into ResultSet constructor.
author
Joshua Roesslein
<jroesslein@gmail.com>
Mon, 10 Jun 2013 05:42:07 +0000
(22:42 -0700)
committer
Joshua Roesslein
<jroesslein@gmail.com>
Mon, 10 Jun 2013 05:42:07 +0000
(22:42 -0700)
tweepy/models.py
patch
|
blob
|
blame
|
history
diff --git
a/tweepy/models.py
b/tweepy/models.py
index fcccbf16a5b24564391e48a593af0f6777d3c2fb..8fca2dd5d1e6066efffc00942da61409b0e9b6eb 100644
(file)
--- 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')