From e78b0c11506362b3c635eb4a863834deae26cee7 Mon Sep 17 00:00:00 2001 From: mihalin Date: Sat, 9 Apr 2022 05:58:37 +0300 Subject: [PATCH] fix for prev --- olgram/models/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/olgram/models/models.py b/olgram/models/models.py index 254c76b..6fab6ed 100644 --- a/olgram/models/models.py +++ b/olgram/models/models.py @@ -62,8 +62,8 @@ class Bot(Model): return (await self.owner).telegram_id async def is_promo(self): - owner = await self.fetch_related("owner") - return await owner.is_promo() + await self.fetch_related("owner") + return await self.owner.is_promo() class Meta: table = 'bot'