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