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"]

@ -5,3 +5,4 @@ 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