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.
- {python-ballchasing-0.1.21/python_ballchasing.egg-info → python-ballchasing-0.1.22}/PKG-INFO +1 -1
- {python-ballchasing-0.1.21 → python-ballchasing-0.1.22}/ballchasing/__init__.py +1 -1
- {python-ballchasing-0.1.21 → python-ballchasing-0.1.22}/ballchasing/api.py +5 -4
- {python-ballchasing-0.1.21 → python-ballchasing-0.1.22/python_ballchasing.egg-info}/PKG-INFO +1 -1
- {python-ballchasing-0.1.21 → python-ballchasing-0.1.22}/LICENSE +0 -0
- {python-ballchasing-0.1.21 → python-ballchasing-0.1.22}/README.md +0 -0
- {python-ballchasing-0.1.21 → python-ballchasing-0.1.22}/ballchasing/constants.py +0 -0
- {python-ballchasing-0.1.21 → python-ballchasing-0.1.22}/ballchasing/stats_info.tsv +0 -0
- {python-ballchasing-0.1.21 → python-ballchasing-0.1.22}/ballchasing/util.py +0 -0
- {python-ballchasing-0.1.21 → python-ballchasing-0.1.22}/python_ballchasing.egg-info/SOURCES.txt +0 -0
- {python-ballchasing-0.1.21 → python-ballchasing-0.1.22}/python_ballchasing.egg-info/dependency_links.txt +0 -0
- {python-ballchasing-0.1.21 → python-ballchasing-0.1.22}/python_ballchasing.egg-info/requires.txt +0 -0
- {python-ballchasing-0.1.21 → python-ballchasing-0.1.22}/python_ballchasing.egg-info/top_level.txt +0 -0
- {python-ballchasing-0.1.21 → python-ballchasing-0.1.22}/setup.cfg +0 -0
- {python-ballchasing-0.1.21 → python-ballchasing-0.1.22}/setup.py +0 -0
|
@@ -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.
|
|
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
|
-
|
|
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
|
-
|
|
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,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python-ballchasing-0.1.21 → python-ballchasing-0.1.22}/python_ballchasing.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{python-ballchasing-0.1.21 → python-ballchasing-0.1.22}/python_ballchasing.egg-info/requires.txt
RENAMED
|
File without changes
|
{python-ballchasing-0.1.21 → python-ballchasing-0.1.22}/python_ballchasing.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|