Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Zahra Rajabi
tweepy
Commits
4d75a024
Commit
4d75a024
authored
Jun 09, 2013
by
Joshua Roesslein
Browse files
Pass max_id and since_id into ResultSet constructor.
parent
b3a9cc06
Changes
1
Hide whitespace changes
Inline
Side-by-side
tweepy/models.py
View file @
4d75a024
...
...
@@ -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'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment