Fix rating and conflict exports

This commit is contained in:
Petko Bordjukov 2016-10-04 13:50:45 +03:00
parent a3c5697f50
commit 9cbb51456c
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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