diff options
| author | rr- | 2016-08-26 23:27:33 +0200 |
|---|---|---|
| committer | rr- | 2016-08-26 23:27:33 +0200 |
| commit | 6d26b5c37a04825b8d09db11ce0512038bcc9c7a (patch) | |
| tree | 2754f2cad5986c6898c698e742cd4a3cb2e176fe /server/szurubooru/search/executor.py | |
| parent | fa60b42f65b53f149ad19344b388f34059aa6718 (diff) | |
server/search: fix sort:random
Diffstat (limited to 'server/szurubooru/search/executor.py')
| -rw-r--r-- | server/szurubooru/search/executor.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/szurubooru/search/executor.py b/server/szurubooru/search/executor.py index a4b0d44..61d4f74 100644 --- a/server/szurubooru/search/executor.py +++ b/server/szurubooru/search/executor.py @@ -10,7 +10,7 @@ def _format_dict_keys(source): def _get_order(order, default_order): if order == tokens.SortToken.SORT_DEFAULT: - return default_order + return default_order or tokens.SortToken.SORT_ASC if order == tokens.SortToken.SORT_NEGATED_DEFAULT: if default_order == tokens.SortToken.SORT_ASC: return tokens.SortToken.SORT_DESC |