From a659523f30925c752e3e280cd99ca5de510cf1b1 Mon Sep 17 00:00:00 2001 From: Joseph Keen Date: Tue, 27 Jun 2023 16:14:05 -0600 Subject: [PATCH 1/2] Use #0 as discriminator if one not provided --- blueprints/discord.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blueprints/discord.py b/blueprints/discord.py index 4305822..a934fd7 100644 --- a/blueprints/discord.py +++ b/blueprints/discord.py @@ -40,7 +40,7 @@ def search_user(_): return error(400, "username param is required") un = request.args["username"] if "#" not in un: - return error(400, "username must be username#discrim") + un += "#0" username, discriminator = un.rsplit("#", 1) user = search_by_username(username, discriminator) if user is not None: From 8b1343b7d6c1ddec88902e4199e31e39be857657 Mon Sep 17 00:00:00 2001 From: Joseph Keen Date: Tue, 27 Jun 2023 16:14:14 -0600 Subject: [PATCH 2/2] Bump automation-common --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 5808f58..ec89dc3 100644 --- a/requirements.txt +++ b/requirements.txt @@ -9,7 +9,7 @@ PyJWT==2.4.0 redis==3.5.3 requests==2.25.1 sentry-sdk[flask]==1.0.0 -git+https://github.com/avrae/automation-common@v4.1.7 +git+https://github.com/avrae/automation-common@v4.1.8 # transitive deps Werkzeug==2.0.3