Rename "items_without_cate_items" to reflect usage

pull/2228/head
syeopite 2021-06-28 22:51:28 -07:00
rodzic ae30f32c36
commit 57c63f3598
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 6FA616E5A5294A82
1 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

@ -234,18 +234,18 @@ def process_search_query(query, page, user, region)
# Light processing to flatten search results out of Categories. # Light processing to flatten search results out of Categories.
# They should ideally be supported in the future. # They should ideally be supported in the future.
items_without_cate_items = [] of SearchItem | ChannelVideo items_without_category = [] of SearchItem | ChannelVideo
items.each do |i| items.each do |i|
if i.is_a? Category if i.is_a? Category
i.contents.each do |nest_i| i.contents.each do |nest_i|
if !nest_i.is_a? Video if !nest_i.is_a? Video
items_without_cate_items << nest_i items_without_category << nest_i
end end
end end
else else
items_without_cate_items << i items_without_category << i
end end
end end
{search_query, items_without_cate_items.size, items_without_cate_items, url_params} {search_query, items_without_category.size, items_without_category, url_params}
end end