From 0068558efb5934a6d2be3129cfe2222e6117145e Mon Sep 17 00:00:00 2001 From: maike Date: Mon, 6 Jul 2020 21:07:03 +0200 Subject: [PATCH] [email] Hood name never changes --- kibicara/platforms/email/bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kibicara/platforms/email/bot.py b/kibicara/platforms/email/bot.py index c0ab98d..5e83da6 100644 --- a/kibicara/platforms/email/bot.py +++ b/kibicara/platforms/email/bot.py @@ -19,8 +19,8 @@ class EmailBot(Censor): async def run(self): """ Loop which waits for new messages and sends emails to all subscribers. """ + hood_name = await Hood.objects.get(id=self.model.hood).name while True: - hood_name = await Hood.objects.get(id=self.model.hood).name message = await self.receive() for subscriber in EmailSubscribers(hood=self.model.hood): json = {