diff --git a/client/html/help_search_posts.tpl b/client/html/help_search_posts.tpl index efcb7c1a..0fe584fa 100644 --- a/client/html/help_search_posts.tpl +++ b/client/html/help_search_posts.tpl @@ -83,9 +83,17 @@ having given flag. <value> can be either loop or sound. - content-checksum + sha1 having given SHA1 checksum + + md5 + having given MD5 checksum + + + content-checksum + alias of sha1 + file-size having given file size (in bytes) diff --git a/server/szurubooru/search/configs/post_search_config.py b/server/szurubooru/search/configs/post_search_config.py index fc98e550..ddc003b7 100644 --- a/server/szurubooru/search/configs/post_search_config.py +++ b/server/szurubooru/search/configs/post_search_config.py @@ -274,9 +274,13 @@ class PostSearchConfig(BaseSearchConfig): ), ), ( - ["content-checksum"], + ["content-checksum", "sha1"], search_util.create_str_filter(model.Post.checksum), ), + ( + ["md5"], + search_util.create_str_filter(model.Post.checksum_md5), + ), ( ["file-size"], search_util.create_num_filter(model.Post.file_size),