fix error
This commit is contained in:
parent
bb5e98c6b1
commit
212530361b
|
@ -143,9 +143,9 @@ class AnnouncementsController < ApplicationController
|
|||
end
|
||||
else
|
||||
if devide_flag
|
||||
anns = sorted_anns.sample(widget_data_count).map{|v| data_to_human_type(v)}
|
||||
top_anns = anns.select{|v| v.is_top}
|
||||
not_top_anns = anns.select{|v| !v.is_top}
|
||||
anns = sorted_anns.sample(widget_data_count)
|
||||
top_anns = anns.select{|v| v.is_top}.map{|v| data_to_human_type(v)}
|
||||
not_top_anns = anns.select{|v| !v.is_top}.map{|v| data_to_human_type(v)}
|
||||
else
|
||||
anns = sorted_anns.sample(widget_data_count).map{|v| data_to_human_type(v)}
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue