Removed __exact from the end of accepted filters.

reminder
Joey Hines 2018-12-10 15:10:41 -06:00
parent b1ac1a908b
commit 6000251a1a
1 changed files with 3 additions and 3 deletions

View File

@ -63,14 +63,14 @@ class Discord(discord.Client):
match = re.match("[{0}]register (\S+)?$".format(self.prefix), message.content) match = re.match("[{0}]register (\S+)?$".format(self.prefix), message.content)
if match: if match:
search = match.group(1) 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: 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 > 0:
if count == 1: 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 nickname = player.username
if not player.is_banned: if not player.is_banned: