From 0bc45e9c45ec92192f23079a3a1a3cb6e8d8c9e8 Mon Sep 17 00:00:00 2001 From: rr- Date: Sun, 17 Apr 2016 08:31:46 +0200 Subject: [PATCH] server/search: support -min and -max suffixes --- API.md | 3 +++ client/html/help-search-general.hbs | 4 ++++ client/js/views/endless_page_view.js | 2 +- server/szurubooru/search/search_executor.py | 14 ++++++++++---- .../tests/search/test_user_search_config.py | 8 ++++++++ 5 files changed, 26 insertions(+), 5 deletions(-) diff --git a/API.md b/API.md index 5dc0381d..6407ea12 100644 --- a/API.md +++ b/API.md @@ -622,6 +622,9 @@ take following form: | `..4` | will show things that are equal to at most 4. | | `1..4` | will show things that are equal to 1, 2, 3 or 4. | +Ranged values can be also supplied by appending `-min` or `-max` to the key, +for example like this: `score-min:1`. + Date/time values can be of following form: - `today` diff --git a/client/html/help-search-general.hbs b/client/html/help-search-general.hbs index 27ee963a..ab21582b 100644 --- a/client/html/help-search-general.hbs +++ b/client/html/help-search-general.hbs @@ -58,6 +58,10 @@ take following form:

+

Ranged values can be also supplied by appending -min or +-max to the key, for example like this: +score-min:1.

+

Date/time values can be of following form: