From e481f9cafe2c723262484a3ed5dfd76f519c20c8 Mon Sep 17 00:00:00 2001 From: soaska Date: Sat, 10 Feb 2024 22:29:51 +0300 Subject: [PATCH 1/2] =?UTF-8?q?=D0=97=D0=B0=D0=BC=D0=B5=D0=BD=D0=B0=20?= =?UTF-8?q?=D0=BC=D0=B5=D1=82=D0=BE=D0=B4=D0=B0=20=D0=B7=D0=B0=D0=B3=D1=80?= =?UTF-8?q?=D1=83=D0=B7=D0=BA=D0=B8=20=D0=BF=D0=B5=D1=80=D0=B5=D0=BC=D0=B5?= =?UTF-8?q?=D0=BD=D0=BD=D0=BE=D0=B9=20ALLOWED=5FUSERS?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.py b/bot.py index f2583e1..d3ac020 100644 --- a/bot.py +++ b/bot.py @@ -61,7 +61,7 @@ OK_APPLICATION_KEY = os.getenv('OK_APPLICATION_KEY') OK_APPLICATION_SECRET_KEY = os.getenv('OK_APPLICATION_SECRET_KEY') OK_GROUP_ID = os.getenv('OK_GROUP_ID') ARRAY_INLINE = [] -ALLOWED_USERS = json.loads(os.environ['ALLOWED_USERS']) +ALLOWED_USERS = json.loads(os.getenv['ALLOWED_USERS']) bot = Bot(token=API_BOT_TOKEN) storage = MemoryStorage() From ec086f755590046391ff76640d0c28088caf3224 Mon Sep 17 00:00:00 2001 From: soaska Date: Sat, 10 Feb 2024 22:31:43 +0300 Subject: [PATCH 2/2] =?UTF-8?q?=D0=A1=D0=BA=D0=BE=D0=B1=D0=BE=D0=BD=D1=8C?= =?UTF-8?q?=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.py b/bot.py index d3ac020..8f4268e 100644 --- a/bot.py +++ b/bot.py @@ -61,7 +61,7 @@ OK_APPLICATION_KEY = os.getenv('OK_APPLICATION_KEY') OK_APPLICATION_SECRET_KEY = os.getenv('OK_APPLICATION_SECRET_KEY') OK_GROUP_ID = os.getenv('OK_GROUP_ID') ARRAY_INLINE = [] -ALLOWED_USERS = json.loads(os.getenv['ALLOWED_USERS']) +ALLOWED_USERS = json.loads(os.getenv('ALLOWED_USERS')) bot = Bot(token=API_BOT_TOKEN) storage = MemoryStorage()