1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-24 03:54:20 +00:00

Sistemato una cosina.

This commit is contained in:
Steffo 2016-01-20 23:38:03 +01:00
parent 46eca1cf4c
commit ca61ccc9bd

View file

@ -18,7 +18,10 @@ def getplayersummaries(steamid):
} }
# Manda la richiesta ai server di Steam. # Manda la richiesta ai server di Steam.
r = requests.get("http://api.steampowered.com/ISteamUser/GetPlayerSummaries/v0002/", params=parametri).json() r = requests.get("http://api.steampowered.com/ISteamUser/GetPlayerSummaries/v0002/", params=parametri).json()
return r['response']['players'][0] if len(r['response']['players']) > 0:
return r['response']['players'][0]
else:
raise NameError
def getnumberofcurrentplayers(appid): def getnumberofcurrentplayers(appid):