From 5ab900e6e3ba17a07330978412bc30cefbac3f3f Mon Sep 17 00:00:00 2001 From: chiu Date: Sun, 1 Mar 2020 16:01:57 +0800 Subject: [PATCH] remove puts --- app/controllers/announcements_controller.rb | 3 --- app/helpers/announcements_helper.rb | 3 --- 2 files changed, 6 deletions(-) diff --git a/app/controllers/announcements_controller.rb b/app/controllers/announcements_controller.rb index 22dc728..1797267 100644 --- a/app/controllers/announcements_controller.rb +++ b/app/controllers/announcements_controller.rb @@ -110,7 +110,6 @@ class AnnouncementsController < ApplicationController end def pack_data(is_random=false) - t1 = Time.now tags = OrbitHelper.widget_tags || [] cats = OrbitHelper.widget_categories || [] subpart = OrbitHelper.get_current_widget @@ -153,8 +152,6 @@ class AnnouncementsController < ApplicationController end mp = (anns[0]["img_src"] rescue "") mpd = (anns[0]["img_description"] rescue "") - t2 = Time.now - puts ['anns',tags,t2-t1] { "announcements" => anns, "extras" => { diff --git a/app/helpers/announcements_helper.rb b/app/helpers/announcements_helper.rb index db9fbb1..2f00342 100644 --- a/app/helpers/announcements_helper.rb +++ b/app/helpers/announcements_helper.rb @@ -115,7 +115,6 @@ module AnnouncementsHelper } end def get_sorted_annc - t1 = Time.now params = OrbitHelper.params locale = OrbitHelper.get_site_locale.to_s page = Page.where(url:params['url']).first @@ -157,8 +156,6 @@ module AnnouncementsHelper end annc_count = all_filter.count total_pages = page_data_count == 0 ? 1 : (annc_count.to_f / page_data_count).ceil - t2 = Time.now - puts ['get_sorted_annc',t2-t1] [sorted,total_pages] end end