Merge remote-tracking branch 'origin/master'

master
Hofei 4 years ago
commit 1d68c62daa

@ -79,7 +79,11 @@ def get_hc_domination_stats(stats, user):
def get_standard_statistik(url, user): def get_standard_statistik(url, user):
url = url.format(user) url = url.format(user)
data = get_json_data(url)["data"] json_data = get_json_data(url)
if not json_data["data"]:
return
else:
data = json_data["data"]
check_user(user) check_user(user)
stats = data["segments"][0]["stats"] stats = data["segments"][0]["stats"]

@ -4,4 +4,5 @@ toml~=0.10.0
paramiko~=2.7.1 paramiko~=2.7.1
setuptools~=46.1.3 setuptools~=46.1.3
beautifulsoup4~=4.9.0 beautifulsoup4~=4.9.0
html5lib html5lib
psycopg2

Loading…
Cancel
Save