Commit aedd73cf authored by Joshua Roesslein's avatar Joshua Roesslein
Browse files

Fix a bug with setting max_id / since_id on a ResultSet.

parent 21055ad5
......@@ -233,10 +233,8 @@ class SearchResults(ResultSet):
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')
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment