# HG changeset patch # User Nattee Niparnan # Date 2014-09-11 18:06:41 # Node ID 033146f498940886db17e83262254f00d184d1d3 # Parent 9d578f2b23e2a069f445feea7192e58964f05402 exclude admin from first solver diff --git a/app/controllers/report_controller.rb b/app/controllers/report_controller.rb --- a/app/controllers/report_controller.rb +++ b/app/controllers/report_controller.rb @@ -134,7 +134,8 @@ } end - if sub.submitted_at and sub.submitted_at < @by_lang[lang.pretty_name][:first][:value] + if sub.user.admin? == false and + sub.submitted_at and sub.submitted_at < @by_lang[lang.pretty_name][:first][:value] @by_lang[lang.pretty_name][:first] = { avail: true, user_id: sub.user_id,