[email] Hood name never changes
This commit is contained in:
parent
8e1335bc06
commit
0068558efb
|
@ -19,8 +19,8 @@ class EmailBot(Censor):
|
||||||
|
|
||||||
async def run(self):
|
async def run(self):
|
||||||
""" Loop which waits for new messages and sends emails to all subscribers. """
|
""" Loop which waits for new messages and sends emails to all subscribers. """
|
||||||
while True:
|
|
||||||
hood_name = await Hood.objects.get(id=self.model.hood).name
|
hood_name = await Hood.objects.get(id=self.model.hood).name
|
||||||
|
while True:
|
||||||
message = await self.receive()
|
message = await self.receive()
|
||||||
for subscriber in EmailSubscribers(hood=self.model.hood):
|
for subscriber in EmailSubscribers(hood=self.model.hood):
|
||||||
json = {
|
json = {
|
||||||
|
|
Loading…
Reference in a new issue