From 6000251a1a2af874a6f06084ffa9be9e7db02249 Mon Sep 17 00:00:00 2001 From: Joey Hines Date: Mon, 10 Dec 2018 15:10:41 -0600 Subject: [PATCH] Removed __exact from the end of accepted filters. --- api/bot.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/bot.py b/api/bot.py index 439efb0..714b6a4 100644 --- a/api/bot.py +++ b/api/bot.py @@ -63,14 +63,14 @@ class Discord(discord.Client): match = re.match("[{0}]register (\S+)?$".format(self.prefix), message.content) if match: search = match.group(1) - count = Application.objects.filter(username__iexact=search, accepted__exact=True).count() + count = Application.objects.filter(username__iexact=search, accepted=True).count() if count == 0: - count = Player.objects.filter(username__iexact=search, application__accepted__exact=True).count() + count = Player.objects.filter(username__iexact=search, application__accepted=True).count() if count > 0: if count == 1: - player = Player.objects.filter(username__iexact=search, application__accepted__exact=True).all()[0] + player = Player.objects.filter(username__iexact=search, application__accepted=True).all()[0] nickname = player.username if not player.is_banned: