1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 13:34:28 +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.
r = requests.get("http://api.steampowered.com/ISteamUser/GetPlayerSummaries/v0002/", params=parametri).json()
if len(r['response']['players']) > 0:
return r['response']['players'][0]
else:
raise NameError
def getnumberofcurrentplayers(appid):