refacto file and class names
This commit is contained in:
parent
3d0d7874e3
commit
956fa63c0b
12 changed files with 126 additions and 126 deletions
|
|
@ -24,9 +24,9 @@ from warchron.controller.dtos import (
|
|||
from warchron.model.war import War
|
||||
from warchron.model.war_participant import WarParticipant
|
||||
from warchron.model.objective import Objective
|
||||
from warchron.model.tie_manager import TieContext, TieResolver
|
||||
from warchron.model.score_service import ScoreService
|
||||
from warchron.controller.closure_workflow import WarClosureWorkflow
|
||||
from warchron.model.tiebreaking import TieContext, TieBreaker
|
||||
from warchron.model.scoring import ScoreComputer
|
||||
from warchron.controller.workflows import WarClosureWorkflow
|
||||
|
||||
from warchron.controller.presenter import Presenter
|
||||
from warchron.view.war_dialog import WarDialog
|
||||
|
|
@ -57,7 +57,7 @@ class WarController:
|
|||
ObjectiveDTO(id=obj.id, name=obj.name, description=obj.description)
|
||||
for obj in war.get_objectives_used_as_maj_or_min()
|
||||
]
|
||||
scores = ScoreService.compute_scores(war, ContextType.WAR, war.id)
|
||||
scores = ScoreComputer.compute_scores(war, ContextType.WAR, war.id)
|
||||
rows: List[WarParticipantScoreDTO] = []
|
||||
vp_icon_map: Dict[str, QIcon] = {}
|
||||
objective_icon_maps: Dict[str, Dict[str, QIcon]] = {}
|
||||
|
|
@ -161,7 +161,7 @@ class WarController:
|
|||
) -> Dict[tuple[str, str, int | None, str | None, str | None], Dict[str, bool]]:
|
||||
bids_map = {}
|
||||
for ctx in contexts:
|
||||
active = TieResolver.get_active_participants(
|
||||
active = TieBreaker.get_active_participants(
|
||||
war,
|
||||
ctx,
|
||||
ctx.participants,
|
||||
|
|
@ -184,7 +184,7 @@ class WarController:
|
|||
context_name=data.title,
|
||||
)
|
||||
if not dialog.exec():
|
||||
TieResolver.cancel_tie_break(war, ctx)
|
||||
TieBreaker.cancel_tie_break(war, ctx)
|
||||
raise AbortedOperation("Tie resolution cancelled")
|
||||
bids_map[ctx.key()] = dialog.get_bids()
|
||||
return bids_map
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue