From 1d8cfd5a895673b7e29371edd78cc62d6615b817 Mon Sep 17 00:00:00 2001 From: Shyam Sunder Date: Sun, 7 Apr 2019 12:17:19 -0400 Subject: [PATCH] server/search: allow searching by source URL content --- client/html/help_search_posts.tpl | 4 ++++ server/szurubooru/search/configs/post_search_config.py | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/client/html/help_search_posts.tpl b/client/html/help_search_posts.tpl index 85dffce0..d1097b79 100644 --- a/client/html/help_search_posts.tpl +++ b/client/html/help_search_posts.tpl @@ -38,6 +38,10 @@ fav favorited by given user (accepts wildcards) + + source + having given source URL (accepts wildcards) + tag-count having given number of tags diff --git a/server/szurubooru/search/configs/post_search_config.py b/server/szurubooru/search/configs/post_search_config.py index 3d5b0eea..a1628ecb 100644 --- a/server/szurubooru/search/configs/post_search_config.py +++ b/server/szurubooru/search/configs/post_search_config.py @@ -230,6 +230,11 @@ class PostSearchConfig(BaseSearchConfig): _create_score_filter(-1) ), + ( + ['source'], + search_util.create_str_filter(model.Post.source) + ), + ( ['tag-count'], search_util.create_num_filter(model.Post.tag_count)