Fix unnecessary artist queries for multi-tag searches

This commit is contained in:
Toks
2013-12-08 12:17:48 -05:00
parent 2b442253ad
commit 8641509deb

View File

@@ -31,7 +31,7 @@ module PostSets
end end
def has_artist? def has_artist?
tag_array.any? && ::Artist.named(tag_string).active.exists? is_single_tag? && ::Artist.named(tag_string).active.exists?
end end
def artist def artist
@@ -43,7 +43,7 @@ module PostSets
end end
def has_pool? def has_pool?
tag_array.size == 1 && pool_name && pool is_single_tag? && pool_name && pool
end end
def pool def pool