Skip to content

Commit 1dcf938

Browse files
committed
Update RemoveTeam.py
1 parent d7915cc commit 1dcf938

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

cmscontrib/RemoveTeam.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333

3434
def remove_team(code: str) -> bool:
3535
with SessionGen() as session:
36+
team = session.query(Team).filter(Team.code == code).first()
3637
if team is None:
3738
logger.error("Team %s does not exist.", code)
3839
return False
@@ -48,9 +49,9 @@ def main():
4849
4950
"""
5051
parser = argparse.ArgumentParser(
51-
description="Remove a team from CMS.")
52+
description="Remove a team from CMS .")
5253
parser.add_argument("code", action="store", type=utf8_decoder,
53-
help="code of the team, e.g. country code")
54+
help="the team code")
5455
args = parser.parse_args()
5556

5657
success = remove_team(code=args.code)

0 commit comments

Comments
 (0)