Skip to content

Commit 47386fa

Browse files
committed
chore(showcase): admin logic on /start
1 parent 04a4eb2 commit 47386fa

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

src/bot/app.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,10 @@ async def on_unknown_state(event: ErrorEvent, state: FSMContext, dialog_manager:
5151
from src.bot.routers.registration import router as registration_router # noqa: E402
5252
from src.bot.routers.user import router as user_router # noqa: E402
5353

54+
dp.include_router(admin_router) # admin mode # TODO: remove later
5455
dp.include_router(commands_router) # start, help, menu commands
5556
dp.include_router(registration_router) # sink for not registered users
56-
dp.include_router(admin_router) # admin mode
57+
# dp.include_router(admin_router) # admin mode # TODO: uncomment later
5758
dp.include_router(user_router) # user model
5859

5960
setup_dialogs(dp)

src/bot/dialogs/admin.py

Whitespace-only changes.

src/bot/routers/admin/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@
1111

1212
router = Dialog(*get_windows(windows))
1313

14-
router.message.register(open_menu, Command("admin"), StatusFilter("admin"))
14+
router.message.register(open_menu, Command("admin"))
15+
router.message.register(open_menu, Command("start"))

0 commit comments

Comments
 (0)