From 05f29bb382fba082e9a0724496813ea37e3ce5d6 Mon Sep 17 00:00:00 2001 From: Mifarse Date: Sun, 31 Oct 2021 17:43:15 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B0=20=D1=81=D1=81=D1=8B=D0=BB=D0=BA=D0=B0=20=D0=BD?= =?UTF-8?q?=D0=B0=20=D0=B3=D0=B8=D1=82=D1=85=D0=B0=D0=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TelegramBot/bot.py | 2 +- TelegramBot/messages/messages.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/TelegramBot/bot.py b/TelegramBot/bot.py index 2762ea9..e8f1370 100644 --- a/TelegramBot/bot.py +++ b/TelegramBot/bot.py @@ -397,7 +397,7 @@ def variant(update: Update, context: CallbackContext): def about(update: Update, context: CallbackContext): """Получить инфу о развертывании бота.""" - deploy_info = os.environ.get("CAROLYN_DEPLOY_INFO") + deploy_info = os.environ.get("CAROLYN_DEPLOY_INFO", "") update.message.reply_html(MESSAGES.Deploy.about(deploy_info)) diff --git a/TelegramBot/messages/messages.py b/TelegramBot/messages/messages.py index a048a43..0d369a9 100644 --- a/TelegramBot/messages/messages.py +++ b/TelegramBot/messages/messages.py @@ -113,8 +113,8 @@ class Messages: class Deploy: @staticmethod - def about(git_info): - return f"ℹ️ Информация о сборке:\n{git_info}" + def about(commit_id: str): + return f"ℹ️ Информация о сборке:\n{commit_id:7}" class Spreadsheets: pass