From 513aa2280bb49159c7a2e5170aa9155067cdbe1b Mon Sep 17 00:00:00 2001 From: Jeremy Zhang Date: Wed, 5 Apr 2017 06:29:57 +0000 Subject: [PATCH] Quick fix for unauthenticated user guild key --- titanembeds/blueprints/api/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/titanembeds/blueprints/api/api.py b/titanembeds/blueprints/api/api.py index d17b8fd..dd87d19 100644 --- a/titanembeds/blueprints/api/api.py +++ b/titanembeds/blueprints/api/api.py @@ -165,7 +165,7 @@ def fetch(): channel_id = request.args.get('channel_id') after_snowflake = request.args.get('after', None, type=int) if user_unauthenticated(): - key = session['user_keys'][channel_id] + key = session['user_keys'][guild_id] else: key = None status = update_user_status(guild_id, session['username'], key)