This commit is contained in:
albert
2013-03-06 20:23:18 -05:00
parent 2549009834
commit 2e41efe5b5
2 changed files with 2 additions and 2 deletions

View File

@@ -124,7 +124,7 @@ class PostQueryBuilder
relation = add_range_relation(q[:artist_tag_count], "posts.tag_count_artist", relation)
relation = add_range_relation(q[:copyright_tag_count], "posts.tag_count_copyright", relation)
relation = add_range_relation(q[:character_tag_count], "posts.tag_count_character", relation)
relation = add_range_relation(q[:tag_count], "posts.tag_count", relation)
relation = add_range_relation(q[:post_tag_count], "posts.tag_count", relation)
relation = add_range_relation(q[:pixiv], "substring(posts.source, 'pixiv.net/img.*/([0-9]+)[^/]*$')::integer", relation)
if q[:md5]

View File

@@ -316,7 +316,7 @@ class Tag < ActiveRecord::Base
q[:date] = parse_helper($2, :date)
when "tagcount"
q[:tag_count] = parse_helper($2)
q[:post_tag_count] = parse_helper($2)
when "gentags"
q[:general_tag_count] = parse_helper($2)