From b30360e901deac9eb4b96a637fb4c33b76e131b4 Mon Sep 17 00:00:00 2001 From: Stijn De Clercq Date: Wed, 20 Jan 2021 20:52:10 +0100 Subject: [PATCH] Comment vaccine changes as API doesn't update on correct times to make this possible --- cogs/corona.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/cogs/corona.py b/cogs/corona.py index 7900dd5..817a09a 100644 --- a/cogs/corona.py +++ b/cogs/corona.py @@ -101,12 +101,15 @@ class Corona(commands.Cog): # Vaccines if vaccines is not None: + # embed.add_field(name="Aantal toegediende vaccins:", + # value=self.createEmbedString( + # vaccines["today"]["vaccines"], + # vaccines["today"]["todayVaccines"], + # self.trendIndicator(vaccines, "todayVaccines") + # )) embed.add_field(name="Aantal toegediende vaccins:", - value=self.createEmbedString( - vaccines["today"]["vaccines"], - vaccines["today"]["todayVaccines"], - self.trendIndicator(vaccines, "todayVaccines") - )) + value="{:,}".format(vaccines["today"]["vaccines"]), + inline=False) # Timestamp of last update timeFormatted = timeFormatters.epochToDate(int(dic["today"]["updated"]) / 1000)