Skip to content

Commit

Permalink
list of not yet participated in admin panel
Browse files Browse the repository at this point in the history
  • Loading branch information
KruASe76 committed Dec 18, 2022
1 parent 184c641 commit fcc0421
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion handlers/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,14 @@ async def admin_panel_command(message: Message):

@router.callback_query(Text(text="santa_progress"))
async def shutdown_query(callback: CallbackQuery):
await callback.answer(f"{len(conf.santa_map)}/{len(conf.santa_participants)}")
await callback.answer()
await callback.message.answer(
f"*{len(conf.santa_map)}/{len(conf.santa_participants)}*\n\n_Ждем\-с_:\n" +
"\n".join(map(
lambda p: p[1],
filter(lambda p: p[0] not in conf.santa_map.keys(), conf.santa_participants.items())
))
)

@router.callback_query(Text(text="shutdown"))
async def shutdown_query(callback: CallbackQuery):
Expand Down

0 comments on commit fcc0421

Please sign in to comment.