diff options
| author | Hunternif | 2019-04-29 05:05:19 +0700 |
|---|---|---|
| committer | Hunternif | 2019-04-29 05:05:19 +0700 |
| commit | 043d873117a5a9e44484ec42a88cee85d5371790 (patch) | |
| tree | c52ad7469d855336e3151150c11fa29bfe7866b2 /server/szurubooru/search/executor.py | |
| parent | e7d858ae07b8ec062133d87e578b33929ef4c33a (diff) | |
server: fix random post in around query when other sorting is present
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 0d362e9..ca55c6d 100644 --- a/server/szurubooru/search/executor.py +++ b/server/szurubooru/search/executor.py @@ -56,7 +56,7 @@ class Executor: ).limit(1)) # random post if 'sort:random' not in query_text: - query_text = query_text + ' sort:random' + query_text = 'sort:random ' + query_text count, random_entities = self.execute(query_text, 0, 1) return ( prev_filter_query.one_or_none(), |