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: