diff --git a/ruby/lib/jam_ruby/app/views/jam_ruby/user_mailer/scheduled_session_daily.html.erb b/ruby/lib/jam_ruby/app/views/jam_ruby/user_mailer/scheduled_session_daily.html.erb index 441e031d8..221c06839 100644 --- a/ruby/lib/jam_ruby/app/views/jam_ruby/user_mailer/scheduled_session_daily.html.erb +++ b/ruby/lib/jam_ruby/app/views/jam_ruby/user_mailer/scheduled_session_daily.html.erb @@ -74,7 +74,7 @@ <%= (sess.latency / 2).round %> ms - <% if sess.latency <= (APP_CONFIG.max_good_full_score) %> + <% if sess.latency <= (APP_CONFIG.max_good_full_score / 2) %> <%= image_tag("http://www.jamkazam.com/assets/content/icon_green_score.png", alt: 'good score icon') %> <% else %> <%= image_tag("http://www.jamkazam.com/assets/content/icon_yellow_score.png", alt: 'fair score icon') %> diff --git a/ruby/lib/jam_ruby/models/email_batch_scheduled_sessions.rb b/ruby/lib/jam_ruby/models/email_batch_scheduled_sessions.rb index 0f61af83b..894aca404 100644 --- a/ruby/lib/jam_ruby/models/email_batch_scheduled_sessions.rb +++ b/ruby/lib/jam_ruby/models/email_batch_scheduled_sessions.rb @@ -217,7 +217,7 @@ SQL def _collect_scored_recipients ActiveRecord::Base.connection.execute("DROP TABLE IF EXISTS tmp_matches") if !self.snapshot? || 0 == (max_score = ENV[ENV_MAX_LATENCY].to_i) - max_score = APP_CONFIG.max_yellow_full_score * 2 + max_score = APP_CONFIG.max_yellow_full_score end limit_sql = (self.snapshot? && 0 < ENV[ENV_QUERY_LIMIT].to_i) ? "LIMIT #{ENV[ENV_QUERY_LIMIT]}" : '' sql =<