This commit is contained in:
Type-kun
2017-06-19 18:22:58 +05:00
parent 835f5d5426
commit faa2d99160
2 changed files with 7 additions and 1 deletions

View File

@@ -55,7 +55,9 @@ module Sources
end
end
untranslated_tags.reject! {|x| x.blank?}
WikiPage.other_names_equal(untranslated_tags).map{|wiki_page| [wiki_page.title, wiki_page.category_name]}
wikis = WikiPage.title_in(untranslated_tags)
wikis += WikiPage.other_names_equal(untranslated_tags)
wikis.uniq.map{|wiki_page| [wiki_page.title, wiki_page.category_name]}
end
def to_h