1
0
mirror of https://github.com/creyD/asiimov.git synced 2026-06-13 01:22:23 +02:00

Removed API KEY Feature

While this would easily avoid the api key limit, Valve wouldn't like this, as it isn't the purpose of the keys.
This commit is contained in:
2020-01-22 13:37:23 +01:00
parent 8d925c8f6a
commit 3df650e314
6 changed files with 62 additions and 39 deletions

View File

@@ -153,9 +153,9 @@ def profile_inventory(request, steamID):
@login_required
def profile_update(request, steamID):
if (request.user.steamid == steamID and request.user.gamer.API_KEY) or request.user.is_staff:
if request.user.steamid == steamID or request.user.is_staff:
the_gamer = get_object_or_404(Gamer, steamid=steamID)
info = getUserInfo(steamID, API_KEY=request.user.gamer.API_KEY or None)
info = getUserInfo(steamID)
the_gamer.communityvisibilitystate = (True if info['communityvisibilitystate'] == 3 else False)
the_gamer.profilestate = info['profilestate']
the_gamer.personaname = info['personaname']