Formatting consistency

reminder
Etzelia 2018-12-08 23:38:30 -06:00
parent b91078a4a7
commit 111aa9eaa3
1 changed files with 2 additions and 2 deletions

View File

@ -123,10 +123,10 @@ class Discord(discord.Client):
count = Player.objects.filter(username__icontains=search, application__isnull=False).count() count = Player.objects.filter(username__icontains=search, application__isnull=False).count()
if count > 0: if count > 0:
if count == 1: if count == 1:
yield from self.discord_message(message.channel, "No applications matched, however there is a player match.") yield from self.discord_message(message.channel, "**No applications matched, however there is a player match**")
info = self.build_info(players[0].application) info = self.build_info(players[0].application)
else: else:
info = "No applications matched, however there are player matches." info = "**No applications matched, however there are player matches**"
for player in players: for player in players:
app = player.application app = player.application
info += "\n{0} - {1} AKA {2} ({3})".format(app.id, app.username.replace("_", "\\_"), player.username.replace("_", "\\_"), app.status) info += "\n{0} - {1} AKA {2} ({3})".format(app.id, app.username.replace("_", "\\_"), player.username.replace("_", "\\_"), app.status)