Fix rating and conflict exports
This commit is contained in:
parent
a3c5697f50
commit
9cbb51456c
|
@ -9,7 +9,7 @@ class HomeController < ApplicationController
|
||||||
end
|
end
|
||||||
|
|
||||||
def export
|
def export
|
||||||
@talks = Talk.all
|
@talks = Talk.find(:all, from: :halfnarp_friendly)
|
||||||
@talk_preferences = TalkPreference.all
|
@talk_preferences = TalkPreference.all
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@ class ConflictCoefficient
|
||||||
attr_reader :left, :right, :conflicts
|
attr_reader :left, :right, :conflicts
|
||||||
|
|
||||||
def self.all
|
def self.all
|
||||||
talk_combinations = Talk.all.map(&:id).combination(2)
|
talk_combinations = Talk.find(:all, from: :halfnarp_friendly).map(&:id).combination(2)
|
||||||
talk_preferences = TalkPreference.all
|
talk_preferences = TalkPreference.all
|
||||||
talk_preferences_count = TalkPreference.count
|
talk_preferences_count = TalkPreference.count
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue