remove puts
This commit is contained in:
parent
c9abece068
commit
5ab900e6e3
|
@ -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" => {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue