fix canceled tie spent tokens
This commit is contained in:
parent
31a2ebb9dc
commit
097823fab0
4 changed files with 25 additions and 3 deletions
|
|
@ -186,7 +186,6 @@ class CampaignController:
|
|||
RefreshScope.WARS_TREE, item_type=ItemType.CAMPAIGN, item_id=campaign_id
|
||||
)
|
||||
|
||||
# TODO fix spent tokens on tie cancel
|
||||
def resolve_ties(
|
||||
self, war: War, contexts: List[TieContext]
|
||||
) -> Dict[str, Dict[str, bool]]:
|
||||
|
|
@ -208,6 +207,7 @@ class CampaignController:
|
|||
context_id=ctx.context_id,
|
||||
)
|
||||
if not dialog.exec():
|
||||
TieResolver.cancel_tie_break(war, ContextType.CAMPAIGN, ctx.context_id)
|
||||
raise ForbiddenOperation("Tie resolution cancelled")
|
||||
bids_map[ctx.context_id] = dialog.get_bids()
|
||||
return bids_map
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue