From 9cbb51456c43b036dc45dc9042efab730a8ec61d Mon Sep 17 00:00:00 2001 From: Petko Bordjukov Date: Tue, 4 Oct 2016 13:50:45 +0300 Subject: [PATCH] Fix rating and conflict exports --- app/controllers/home_controller.rb | 2 +- app/models/conflict_coefficient.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/home_controller.rb b/app/controllers/home_controller.rb index 3200952..8f61789 100644 --- a/app/controllers/home_controller.rb +++ b/app/controllers/home_controller.rb @@ -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 diff --git a/app/models/conflict_coefficient.rb b/app/models/conflict_coefficient.rb index cb6df0d..949e42f 100644 --- a/app/models/conflict_coefficient.rb +++ b/app/models/conflict_coefficient.rb @@ -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