mirror of
https://github.com/creyD/asiimov.git
synced 2026-06-13 01:22:23 +02:00
Profile and Settings Work
- Added logout button + url - Added redirect urls - Fixed bug where the steam name wouldn't show in template - Added tradeurl to model - Added simple profile - Added ability to change own trade url
This commit is contained in:
@@ -15,7 +15,7 @@ FLOAT_SERVER = 'https://api.csgofloat.com/?url='
|
||||
def getUserInfo(steamID, API_KEY=settings.STEAM_API_KEY):
|
||||
QUERY = STEAM_SERVER + USER_METHOD + '/?key=' + str(API_KEY) + '&format=json&steamids=' + str(steamID)
|
||||
player_object = json.load(urllib.request.urlopen(QUERY))
|
||||
return player_object
|
||||
return player_object['response']['players'][0]
|
||||
|
||||
|
||||
# Get the CS:GO inventory of a gamer
|
||||
|
||||
Reference in New Issue
Block a user