diff --git a/requirements.txt b/requirements.txt index d9f7817..0745a10 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,4 +4,4 @@ colorlog==6.7.0 typing==3.7.4.3 aiohttp==3.8.4 colorama==0.4.5 -cachetools==5.3.0 +cachetools==5.3.0 \ No newline at end of file diff --git a/tgbot/routers/admin/admin_menu.py b/tgbot/routers/admin/admin_menu.py index ddf15a3..b037155 100644 --- a/tgbot/routers/admin/admin_menu.py +++ b/tgbot/routers/admin/admin_menu.py @@ -47,9 +47,11 @@ async def admin_callback_inline(call: CallbackQuery, bot: Bot, state: FSM, rSess async def admin_database(message: Message, bot: Bot, state: FSM, rSession: RS, my_user): await state.clear() - await message.answer_document(FSInputFile(PATH_DATABASE), - caption=f"📦 BACKUP\n" - f"🕰 {get_date()}") + await message.answer_document( + FSInputFile(PATH_DATABASE), + caption=f"📦 BACKUP\n" + f"🕰 {get_date()}", + ) # Получение логов @@ -57,9 +59,11 @@ async def admin_database(message: Message, bot: Bot, state: FSM, rSession: RS, m async def admin_log(message: Message, bot: Bot, state: FSM, rSession: RS, my_user): await state.clear() - await message.answer_document(FSInputFile(PATH_LOGS), - caption=f"🖨 LOGS\n" - f"🕰 {get_date()}") + await message.answer_document( + FSInputFile(PATH_LOGS), + caption=f"🖨 LOGS\n" + f"🕰 {get_date()}", + ) # Очистить логи