fix tie-break & draw icons in war & campaign ranking
This commit is contained in:
parent
747f5dec65
commit
58589b8dc1
3 changed files with 31 additions and 23 deletions
|
|
@ -27,6 +27,7 @@ class TieResolver:
|
|||
for battle in round.battles.values():
|
||||
if not battle.is_draw():
|
||||
continue
|
||||
# TODO remove test without score
|
||||
if TieResolver.is_tie_resolved(war, ContextType.BATTLE, battle.sector_id):
|
||||
continue
|
||||
|
||||
|
|
@ -55,6 +56,7 @@ class TieResolver:
|
|||
|
||||
@staticmethod
|
||||
def find_campaign_ties(war: War, campaign_id: str) -> List[TieContext]:
|
||||
# TODO remove test without score
|
||||
if TieResolver.is_tie_resolved(war, ContextType.CAMPAIGN, campaign_id):
|
||||
return []
|
||||
scores = ScoreService.compute_scores(war, ContextType.CAMPAIGN, campaign_id)
|
||||
|
|
@ -88,6 +90,7 @@ class TieResolver:
|
|||
|
||||
@staticmethod
|
||||
def find_war_ties(war: War) -> List[TieContext]:
|
||||
# TODO remove test without score
|
||||
if TieResolver.is_tie_resolved(war, ContextType.WAR, war.id):
|
||||
return []
|
||||
scores = ScoreService.compute_scores(war, ContextType.WAR, war.id)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue