Skip to content

Commit e34868c

Browse files
committed
Fix bugs
1 parent 9b4036e commit e34868c

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

app/handlers/common/lang.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
from aiogram.fsm.context import FSMContext
55
from sqlalchemy.ext.asyncio import AsyncSession
66

7-
from app.handlers.common.start import start_command
87
from app.keyboards.inline.lang import LangCallback, lang_ikb
98
from app.routers import common_router
109
from app.text import message_text as mt

app/handlers/dating/inbox.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ async def match_archive(
4444
await message.answer(mt.MESSAGE_TO_YOU.format(match_data.message))
4545
else:
4646
await message.answer(mt.LIKE_ARCHIVE)
47-
await start_command(message, state, user)
47+
await start_command(message=message, user=user, state=state)
4848

4949

5050
@dating_router.callback_query(StateFilter("*"), F.data == "archive")
@@ -70,7 +70,7 @@ async def _match_atchive_callback(
7070
await callback.message.answer(mt.MESSAGE_TO_YOU.format(match_data.message))
7171
else:
7272
await callback.message.answer(mt.LIKE_ARCHIVE)
73-
await start_command(callback.message, state, user)
73+
await start_command(callback.message, user=user, state=state)
7474

7575

7676
@dating_router.message(
@@ -130,7 +130,7 @@ async def _match_response(
130130
await message.answer(mt.MESSAGE_TO_YOU.format(match_data.message))
131131
else:
132132
await message.answer(mt.EMPTY_PROFILE_SEARCH)
133-
await start_command(message, state, user)
133+
await start_command(message=message, user=user, state=state)
134134

135135

136136
def generate_user_link(id: int, username: str = None) -> str:

app/handlers/dating/search.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ async def next_profile(
140140
await send_profile_with_dist(user=user, profile=profile, session=session)
141141
else:
142142
await message.answer(mt.EMPTY_PROFILE_SEARCH)
143-
await start_command(message, state, user)
143+
await start_command(messag=message, user=user, state=state)
144144

145145

146146
async def like_profile(

0 commit comments

Comments
 (0)