mirror of
https://github.com/civsocit/olgram.git
synced 2023-07-22 01:29:12 +03:00
fix для ограничения прав
This commit is contained in:
parent
3bdae028c3
commit
04c7711b74
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user