1
0
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:
2020-01-19 11:14:34 +01:00
parent 1f8aaa7277
commit 9d32b12b05
14 changed files with 167 additions and 19 deletions

View File

@@ -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