Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions bff/lkshmatch/di.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ def all_providers() -> list[Provider]:
CoreClientProvider(core_host, core_port),
MongoRepositoryProvider(),
RestAllAdapterProvider(),
CoreClientProvider(core_host, core_port),
]


Expand Down
4 changes: 2 additions & 2 deletions bff/lkshmatch/tg_bot/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ async def make_activity_buttons(
if sport_id is not None:
back_button = Buttons.BACK_TO_SPORTS.inline()
markup.add(back_button)

return markup


Expand Down Expand Up @@ -366,7 +366,7 @@ async def handle_sport_register_callback(call: types.CallbackQuery) -> None:
log_info("Called handle_sport_register_callback.", call.message)
await bot.answer_callback_query(call.id)
markup = await make_sports_buttons()
await edit_with_ibuttons(call, "Выберите спортивную секцию:", markup)
await msg_with_ibuttons(call.message, "Выберите спортивную секцию:", markup)
log_info("Finished handle_sport_register_callback successfully.", call.message)


Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
DELETE FROM team_players
WHERE player_id = $1 and team_id = $2
WHERE player_id = $1 and team_id = $2;

--DELETE FROM teams
--WHERE teams.id = $2;
2 changes: 1 addition & 1 deletion core/migrations/00001_create_init_tables.sql
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ create table activities
(
id bigserial primary key,
title varchar(64) not null,
description text,
description text,
sport_section_id bigint not null references sport_sections (id),
creator_id bigint not null references players (id),
enroll_deadline timestamptz,
Expand Down
Loading