Fix syntax errors in the conflict coefficient
This commit is contained in:
parent
c94a630f7f
commit
eff79dab63
|
@ -19,11 +19,10 @@ class ConflictCoefficient
|
||||||
end
|
end
|
||||||
|
|
||||||
def conflicts
|
def conflicts
|
||||||
talk_preferences.joins('INNER JOIN "selected_talks" AS left
|
talk_preferences.joins('INNER JOIN "selected_talks" AS "left"
|
||||||
ON "left"."talk_preference_id" = "talk_preferences"."unique_id"
|
ON "left"."talk_preference_id" = "talk_preferences"."unique_id"
|
||||||
INNER JOIN "selected_talks" AS right
|
INNER JOIN "selected_talks" AS "right"
|
||||||
ON "right"."talk_preference_id" = "talk_preferences"."unique_id"')
|
ON "right"."talk_preference_id" = "talk_preferences"."unique_id"').where(left: {talk_id: @left}, right: {talk_id: @right}).count
|
||||||
.where(left: {talk_id: @left}, right: {talk_id: @right}).count
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def total_votes
|
def total_votes
|
||||||
|
|
Loading…
Reference in New Issue