diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-01-15 21:48:13 +0100 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-01-15 21:48:13 +0100 |
| commit | 530cba26f5e63e2c9b593dea40ee5d774ac3d2c4 (patch) | |
| tree | fd6188ac79fb1d2f48324e7edc110fa847fe729c /gamelocker | |
| parent | c64577d1e4a01de22fe0293443934933d01f52ab (diff) | |
| download | python-gamelocker-530cba26f5e63e2c9b593dea40ee5d774ac3d2c4.tar.gz python-gamelocker-530cba26f5e63e2c9b593dea40ee5d774ac3d2c4.zip | |
fix wrong calculation of page offsets
Diffstat (limited to 'gamelocker')
| -rw-r--r-- | gamelocker/api.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gamelocker/api.py b/gamelocker/api.py index 905f9fa..17c03f6 100644 --- a/gamelocker/api.py +++ b/gamelocker/api.py @@ -189,7 +189,7 @@ class Gamelocker(object): matches = [] for batch in range(0, limit, max_limit): params["page[limit]"] = min(limit, max_limit) - params["page[offset]"] = batch*max_limit+offset + params["page[offset]"] = max_limit+offset matches += self._get("matches", params=params) limit -= max_limit |
