Fix important bug.

This commit is contained in:
chiu 2020-06-09 00:07:35 +08:00
parent 58b5f5509c
commit 4a584b2f8f
1 changed files with 1 additions and 1 deletions

View File

@ -220,7 +220,7 @@ module AnnouncementsHelper
else
all_sorted = feeds_anns.select{|v| v['is_top']}.sort{|v1,v2| v2["postdate"]<=>v1["postdate"]} + feeds_anns.select{|v| v['is_top'] != true}.sort{|v1,v2| v2["postdate"]<=>v1["postdate"]}
end
all_filter = filter_by_keywords(all_sorted,params[:keywords],params[:stime].params[:etime])
all_filter = filter_by_keywords(all_sorted,params[:keywords],params[:stime],params[:etime])
else
all_filter = filter_by_keywords(announcements,params[:keywords],params[:stime],params[:etime])
end