From 38ff5f2767bb71768103820104f886be206c1453 Mon Sep 17 00:00:00 2001 From: Jeremy Zhang Date: Thu, 13 Apr 2017 23:12:42 -0700 Subject: [PATCH] Git you suck, just undid my work this morning --- titanembeds/blueprints/api/api.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/titanembeds/blueprints/api/api.py b/titanembeds/blueprints/api/api.py index 75c1189..7e840ad 100644 --- a/titanembeds/blueprints/api/api.py +++ b/titanembeds/blueprints/api/api.py @@ -186,8 +186,8 @@ def get_guild_channels(guild_id): result["read"] = False result["write"] = False - if result["read"]: - result_channels.append(result) + #if result["read"]: + result_channels.append(result) return sorted(result_channels, key=lambda k: k['channel']['position']) def filter_guild_channel(guild_id, channel_id): @@ -309,7 +309,7 @@ def create_unauthenticated_user(): username = username.strip() if len(username) < 2 or len(username) > 32: abort(406) - if not all(x.isalpha() or x.isspace() or "-" == x or "_" == x for x in username): + if not all(x.isalnum() or x.isspace() or "-" == x or "_" == x for x in username): abort(406) if not check_guild_existance(guild_id): abort(404)