bugfix
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2026-02-08 17:45:08 +09:00
parent 931235ff36
commit 062b782fb7
7 changed files with 275 additions and 27 deletions

View File

@@ -18,7 +18,7 @@ from ..core.database import async_session_maker
from ..core.services import UserService, LotteryService, ParticipationService
from ..core.chat_services import ChatMessageService
from ..core.config import ADMIN_IDS
from ..core.models import User, Lottery, Participation, Account, ChatMessage
from ..core.models import User, Lottery, Participation, Account, ChatMessage, Winner
logger = logging.getLogger(__name__)
@@ -3052,7 +3052,8 @@ async def export_data(callback: CallbackQuery):
text += f"🏆 Победителей: {winners_count}\n\n"
text += f"✅ Данные экспортированы в файл:\n{filename}"
await callback.message.edit_text(
await safe_edit_message(
callback,
text,
reply_markup=InlineKeyboardMarkup(inline_keyboard=[
[InlineKeyboardButton(text="🔄 Экспортировать снова", callback_data="admin_export_data")],