From 5e07feb815eb4029541d2e0016f678548bd22cb4 Mon Sep 17 00:00:00 2001 From: crell2100 Date: Mon, 16 Dec 2024 16:40:01 +0300 Subject: [PATCH] donats_enable->donations_enable (rename variable) --- handlers/pay.py | 4 ++-- handlers/start.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/handlers/pay.py b/handlers/pay.py index 88155f36..6a9c66e9 100644 --- a/handlers/pay.py +++ b/handlers/pay.py @@ -3,7 +3,7 @@ from aiogram.types import CallbackQuery, InlineKeyboardButton from aiogram.utils.keyboard import InlineKeyboardBuilder -from config import CRYPTO_BOT_ENABLE, FREEKASSA_ENABLE, ROBOKASSA_ENABLE, STARS_ENABLE, YOOKASSA_ENABLE, DONATS_ENABLE, YOOMONEY_ENABLE +from config import CRYPTO_BOT_ENABLE, FREEKASSA_ENABLE, ROBOKASSA_ENABLE, STARS_ENABLE, YOOKASSA_ENABLE, DONATIONS_ENABLE, YOOMONEY_ENABLE router = Router() @@ -57,7 +57,7 @@ async def handle_pay(callback_query: CallbackQuery): ) builder.row(InlineKeyboardButton(text="🎟️ Активировать купон", callback_data="activate_coupon")) - if DONATS_ENABLE: + if DONATIONS_ENABLE: builder.row(InlineKeyboardButton(text="💰 Поддержать проект", callback_data="donate")) builder.row(InlineKeyboardButton(text="👤 Личный кабинет", callback_data="profile")) diff --git a/handlers/start.py b/handlers/start.py index 243c14e3..b13d27c9 100644 --- a/handlers/start.py +++ b/handlers/start.py @@ -12,7 +12,7 @@ from aiogram.types import ( ) from aiogram.utils.keyboard import InlineKeyboardBuilder -from config import CHANNEL_URL, CHANNEL_EXISTS, CONNECT_ANDROID, CONNECT_IOS, DOWNLOAD_ANDROID, DOWNLOAD_IOS, SUPPORT_CHAT_URL,DONATS_ENABLE +from config import CHANNEL_URL, CHANNEL_EXISTS, CONNECT_ANDROID, CONNECT_IOS, DOWNLOAD_ANDROID, DOWNLOAD_IOS, SUPPORT_CHAT_URL,DONATIONS_ENABLE from database import add_connection, add_referral, check_connection_exists, get_trial, use_trial from handlers.keys.trial_key import create_trial_key @@ -133,7 +133,7 @@ async def handle_connect_vpn(callback_query: CallbackQuery, session: Any): async def handle_about_vpn(callback_query: CallbackQuery): builder = InlineKeyboardBuilder() - if DONATS_ENABLE: + if DONATIONS_ENABLE: builder.row(InlineKeyboardButton(text="💰 Поддержать проект", callback_data="donate")) builder.row(