fix remove round used in sector
This commit is contained in:
parent
6cd3a060c7
commit
701f6b3292
7 changed files with 15 additions and 9 deletions
|
|
@ -380,7 +380,9 @@ class Model:
|
|||
return rnd
|
||||
raise KeyError("Round not found")
|
||||
|
||||
def get_round_index(self, round_id: str) -> int:
|
||||
def get_round_index(self, round_id: str | None) -> int | None:
|
||||
if round_id is None:
|
||||
return None
|
||||
camp = self.get_campaign_by_round(round_id)
|
||||
return camp.get_round_index(round_id)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue