Skip to content

Commit

Permalink
fixed linters
Browse files Browse the repository at this point in the history
  • Loading branch information
bomzheg committed May 25, 2024
1 parent bd7806f commit 3777877
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
14 changes: 10 additions & 4 deletions shvatka/tgbot/handlers/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,17 @@


async def merge_teams_command(
message: types.Message,
command: CommandObject,
game_log: GameLogWriter,
dao: HolderDao,
message: types.Message,
command: CommandObject,
game_log: GameLogWriter,
dao: HolderDao,
):
if not command.args:
await message.reply(
"После команды следует указать аргументы. "
"Сначала id команды в новом движке, а потом id команды с форума."
)
return
old_id, new_id = map(int, command.args.split())
primary = await get_team_by_id(new_id, dao.team)
assert primary.captain
Expand Down
6 changes: 4 additions & 2 deletions shvatka/tgbot/views/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,14 @@ def __str__(self) -> str:
)


MERGE_TEAMS = BotCommand(command="merge_teams", description="объединить достижения команды в разных источниках")
MERGE_TEAMS = BotCommand(
command="merge_teams", description="объединить достижения команды в разных источниках"
)
HELP_GAME_ADMIN = CommandsGroup(
"Команды администратора игры",
[
MERGE_TEAMS,
]
],
)


Expand Down

0 comments on commit 3777877

Please sign in to comment.