aboutsummaryrefslogtreecommitdiff
path: root/server/szurubooru
diff options
context:
space:
mode:
authorShyam Sunder2021-01-05 13:51:39 -0500
committerShyam Sunder2021-01-05 13:51:39 -0500
commit2dfd1c2192961065fc27785c31cd86f7ceb82412 (patch)
tree694c9f64435f37c5636f94a9df6eb6425e45be03 /server/szurubooru
parent2bdb072296633e444ec63eee45eea33272dfaefc (diff)
server/search: add MD5-based search
Diffstat (limited to 'server/szurubooru')
-rw-r--r--server/szurubooru/search/configs/post_search_config.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/server/szurubooru/search/configs/post_search_config.py b/server/szurubooru/search/configs/post_search_config.py
index fc98e55..ddc003b 100644
--- a/server/szurubooru/search/configs/post_search_config.py
+++ b/server/szurubooru/search/configs/post_search_config.py
@@ -274,10 +274,14 @@ 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),
),

© 2015 - 2026 Jakob L. Kreuze