Update archives_controller.rb

This commit is contained in:
chiu 2019-09-20 14:30:21 +08:00
parent 24f3bdc94e
commit ea20843488
1 changed files with 1 additions and 2 deletions

View File

@ -334,8 +334,7 @@ F cats = files_by_cateogry.keys.collect do |cat|
end
if cat_type=='id'
categories_temp = ModuleApp.where(:key => "archive").first.categories
categories = categories_temp.where(_id: categories)
puts categories.inspect
categories = categories_temp.select{|cat| categories.include? cat.id.to_s}
end
categories_sort = []
all_categories_id.each do |cat_id|