autoconfig servers in database

This commit is contained in:
Vladless
2024-12-01 23:24:13 +03:00
parent efc687d0fe
commit d9064ff016
2 changed files with 49 additions and 0 deletions
+2
View File
@@ -27,6 +27,7 @@ from handlers.payments.freekassa_pay import freekassa_webhook
from handlers.payments.robokassa_pay import robokassa_webhook
from handlers.payments.yookassa_pay import yookassa_webhook
from logger import logger
from servers import sync_servers_with_db
async def periodic_notifications():
@@ -66,6 +67,7 @@ async def shutdown_site(site):
async def main():
dp.include_router(router)
await sync_servers_with_db()
if DEV_MODE:
logger.info("Запуск в режиме разработки...")