From 095a2256739fc261842078d6eabc47c55e89dada Mon Sep 17 00:00:00 2001 From: hteppl Date: Sun, 8 Dec 2024 05:13:38 +0300 Subject: [PATCH] Move payments utils into utils folder --- handlers/payments/cryprobot_pay.py | 2 +- handlers/payments/freekassa_pay.py | 2 +- handlers/payments/robokassa_pay.py | 2 +- handlers/payments/stars_pay.py | 2 +- handlers/payments/yookassa_pay.py | 2 +- {handlers => utils}/payments/utils.py | 0 6 files changed, 5 insertions(+), 5 deletions(-) rename {handlers => utils}/payments/utils.py (100%) diff --git a/handlers/payments/cryprobot_pay.py b/handlers/payments/cryprobot_pay.py index eeab0bfb..7d2188f4 100644 --- a/handlers/payments/cryprobot_pay.py +++ b/handlers/payments/cryprobot_pay.py @@ -10,7 +10,7 @@ from aiohttp import web from config import CRYPTO_BOT_ENABLE, CRYPTO_BOT_TOKEN, RUB_TO_USDT from utils.database import add_connection, add_payment, check_connection_exists, get_key_count, update_balance -from handlers.payments.utils import send_payment_success_notification +from utils.payments.utils import send_payment_success_notification from handlers.texts import PAYMENT_OPTIONS from logger import logger diff --git a/handlers/payments/freekassa_pay.py b/handlers/payments/freekassa_pay.py index 49b38855..6e1c33fe 100644 --- a/handlers/payments/freekassa_pay.py +++ b/handlers/payments/freekassa_pay.py @@ -14,7 +14,7 @@ import requests from config import FREEKASSA_API_KEY, FREEKASSA_SHOP_ID from utils.database import add_payment, update_balance -from handlers.payments.utils import send_payment_success_notification +from utils.payments.utils import send_payment_success_notification from handlers.texts import PAYMENT_OPTIONS router = Router() diff --git a/handlers/payments/robokassa_pay.py b/handlers/payments/robokassa_pay.py index b0db9d1e..bfa09e2c 100644 --- a/handlers/payments/robokassa_pay.py +++ b/handlers/payments/robokassa_pay.py @@ -11,7 +11,7 @@ from robokassa import HashAlgorithm, Robokassa from config import ROBOKASSA_ENABLE, ROBOKASSA_LOGIN, ROBOKASSA_PASSWORD1, ROBOKASSA_PASSWORD2, ROBOKASSA_TEST_MODE from utils.database import add_connection, add_payment, check_connection_exists, get_key_count, update_balance -from handlers.payments.utils import send_payment_success_notification +from utils.payments.utils import send_payment_success_notification from handlers.texts import PAYMENT_OPTIONS from logger import logger diff --git a/handlers/payments/stars_pay.py b/handlers/payments/stars_pay.py index 18b9fa07..75135c5e 100644 --- a/handlers/payments/stars_pay.py +++ b/handlers/payments/stars_pay.py @@ -8,7 +8,7 @@ from aiogram.utils.keyboard import InlineKeyboardBuilder from config import RUB_TO_XTR from utils.database import add_connection, add_payment, check_connection_exists, get_key_count, update_balance -from handlers.payments.utils import send_payment_success_notification +from utils.payments.utils import send_payment_success_notification from handlers.texts import PAYMENT_OPTIONS from logger import logger diff --git a/handlers/payments/yookassa_pay.py b/handlers/payments/yookassa_pay.py index b71a5bf3..d0dff390 100644 --- a/handlers/payments/yookassa_pay.py +++ b/handlers/payments/yookassa_pay.py @@ -11,7 +11,7 @@ from yookassa import Configuration, Payment from config import YOOKASSA_ENABLE, YOOKASSA_SECRET_KEY, YOOKASSA_SHOP_ID from utils.database import add_connection, add_payment, check_connection_exists, get_key_count, update_balance -from handlers.payments.utils import send_payment_success_notification +from utils.payments.utils import send_payment_success_notification from handlers.texts import PAYMENT_OPTIONS from logger import logger diff --git a/handlers/payments/utils.py b/utils/payments/utils.py similarity index 100% rename from handlers/payments/utils.py rename to utils/payments/utils.py