python-ballchasing 0.1.21__tar.gz → 0.1.22__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python-ballchasing
3
- Version: 0.1.21
3
+ Version: 0.1.22
4
4
  Summary: A Python wrapper around the Ballchasing API
5
5
  Home-page: https://github.com/Rolv-Arild/python-ballchasing
6
6
  Author: Rolv-Arild Braaten
@@ -28,7 +28,7 @@ __author__ = 'Rolv-Arild Braaten'
28
28
  __email__ = 'rolv_arild@hotmail.com'
29
29
  __copyright__ = 'Copyright (c) 2020 Rolv-Arild Braaten'
30
30
  __license__ = 'Apache License 2.0'
31
- __version__ = '0.1.21'
31
+ __version__ = '0.1.22'
32
32
  __url__ = 'https://github.com/Rolv-Arild/python-ballchasing'
33
33
  __download_url__ = 'https://pypi.python.org/pypi/python-ballchasing'
34
34
  __description__ = 'A Python wrapper around the Ballchasing API'
@@ -2,6 +2,7 @@ import os
2
2
  import time
3
3
  from datetime import datetime
4
4
  from typing import Optional, Iterator, Union, List
5
+ from urllib.parse import parse_qs, urlparse
5
6
 
6
7
  from requests import sessions, Response, ConnectionError
7
8
 
@@ -174,9 +175,9 @@ class Api:
174
175
  if "next" not in d:
175
176
  break
176
177
 
177
- url = d["next"]
178
+ next_url = d["next"]
178
179
  left -= len(batch)
179
- params = {}
180
+ params["after"] = parse_qs(urlparse(next_url).query)["after"][0]
180
181
 
181
182
  def get_replay(self, replay_id: str) -> dict:
182
183
  """
@@ -259,9 +260,9 @@ class Api:
259
260
  if "next" not in d:
260
261
  break
261
262
 
262
- url = d["next"]
263
+ next_url = d["next"]
263
264
  left -= len(batch)
264
- params = {}
265
+ params["after"] = parse_qs(urlparse(next_url).query)["after"][0]
265
266
 
266
267
  def create_group(self,
267
268
  name: str,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python-ballchasing
3
- Version: 0.1.21
3
+ Version: 0.1.22
4
4
  Summary: A Python wrapper around the Ballchasing API
5
5
  Home-page: https://github.com/Rolv-Arild/python-ballchasing
6
6
  Author: Rolv-Arild Braaten