fix для ограничения прав

This commit is contained in:
mihalin 2021-10-02 14:47:33 +03:00
parent 3bdae028c3
commit 04c7711b74

View File

@ -35,7 +35,8 @@ class OlgramSettings(AbstractSettings):
@classmethod @classmethod
@lru_cache @lru_cache
def admin_id(cls): 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): class ServerSettings(AbstractSettings):