fix campaign tie loop + dynamic tie dialog
This commit is contained in:
parent
f339498f97
commit
c9407f9407
5 changed files with 120 additions and 222 deletions
|
|
@ -25,12 +25,7 @@ class RoundClosureWorkflow(ClosureWorkflow):
|
|||
bids_map = self.app.rounds.resolve_ties(war, ties)
|
||||
for tie in ties:
|
||||
bids = bids_map[tie.context_id]
|
||||
TieResolver.apply_bids(
|
||||
war,
|
||||
tie.context_type,
|
||||
tie.context_id,
|
||||
bids,
|
||||
)
|
||||
TieResolver.apply_bids(war, tie.context_type, tie.context_id, bids)
|
||||
TieResolver.resolve_tie_state(
|
||||
war, tie.context_type, tie.context_id, tie.participants, bids
|
||||
)
|
||||
|
|
@ -49,17 +44,9 @@ class CampaignClosureWorkflow(ClosureWorkflow):
|
|||
bids_map = self.app.campaigns.resolve_ties(war, ties)
|
||||
for tie in ties:
|
||||
bids = bids_map[tie.context_id]
|
||||
TieResolver.apply_bids(
|
||||
war,
|
||||
tie.context_type,
|
||||
tie.context_id,
|
||||
bids,
|
||||
)
|
||||
TieResolver.apply_bids(war, tie.context_type, tie.context_id, bids)
|
||||
TieResolver.resolve_tie_state(
|
||||
war,
|
||||
tie.context_type,
|
||||
tie.context_id,
|
||||
tie.participants,
|
||||
war, tie.context_type, tie.context_id, tie.participants, bids
|
||||
)
|
||||
ties = TieResolver.find_campaign_ties(war, campaign.id)
|
||||
ClosureService.finalize_campaign(campaign)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue