We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c27087d commit 552026aCopy full SHA for 552026a
amadeus/mixins/pagination.py
@@ -35,6 +35,7 @@ def __page(self, name, response):
35
36
def __page_number_for(self, name, response):
37
try:
38
- return return response.result['meta']['links'][name].split('page%5Boffset%5D=')[1].split('&')[0]
+ url = response.result['meta']['links'][name]
39
+ return url.split('page%5Boffset%5D=')[1].split('&')[0]
40
except Exception:
41
return None
0 commit comments