Add conflicts summary to voting summary
This commit is contained in:
parent
d17bc19b23
commit
a8dd3ca040
|
@ -25,6 +25,10 @@ class Summary
|
||||||
@ranking ||= Ranking.new(talk_ids: talk_ids).ranking
|
@ranking ||= Ranking.new(talk_ids: talk_ids).ranking
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def conflicts
|
||||||
|
@conflicts ||= ConflictsSummary.new(talk_ids: talk_ids).conflicts
|
||||||
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def least_conflicts_for_single_talk
|
def least_conflicts_for_single_talk
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
json.extract! @summary, :number_of_ballots, :most_conflicts, :least_conflicts, :ranking
|
json.extract! @summary, :number_of_ballots, :most_conflicts, :least_conflicts, :ranking, :conflicts
|
||||||
|
|
Loading…
Reference in New Issue