From 04c7711b7443754be4a47f0a26b26541811f604b Mon Sep 17 00:00:00 2001 From: mihalin Date: Sat, 2 Oct 2021 14:47:33 +0300 Subject: [PATCH] =?UTF-8?q?fix=20=D0=B4=D0=BB=D1=8F=20=D0=BE=D0=B3=D1=80?= =?UTF-8?q?=D0=B0=D0=BD=D0=B8=D1=87=D0=B5=D0=BD=D0=B8=D1=8F=20=D0=BF=D1=80?= =?UTF-8?q?=D0=B0=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- olgram/settings.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/olgram/settings.py b/olgram/settings.py index 374368a..b107075 100644 --- a/olgram/settings.py +++ b/olgram/settings.py @@ -35,7 +35,8 @@ class OlgramSettings(AbstractSettings): @classmethod @lru_cache def admin_id(cls): - return cls._get_env("ADMIN_ID", True) + _id = cls._get_env("ADMIN_ID", True) + return int(_id) if _id else None class ServerSettings(AbstractSettings):