Skip to content

Commit c27087d

Browse files
Fix pagination
1 parent 899eb28 commit c27087d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

amadeus/mixins/pagination.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ def __page(self, name, response):
3535

3636
def __page_number_for(self, name, response):
3737
try:
38-
return response.result['meta']['links'][name].split('=')[-1]
38+
return return response.result['meta']['links'][name].split('page%5Boffset%5D=')[1].split('&')[0]
3939
except Exception:
4040
return None

0 commit comments

Comments
 (0)