remove SCORE_STRNORM - everyone supports LOWER now

This commit is contained in:
Shish
2019-12-15 16:07:46 +00:00
parent 7b7febea55
commit d7a2ca9ddc
12 changed files with 22 additions and 26 deletions

View File

@ -579,10 +579,10 @@ class OuroborosAPI extends Extension
$database->scoreql_to_sql(
"
SELECT DISTINCT
id, SCORE_STRNORM(substr(tag, 1, 1)), count
id, LOWER(substr(tag, 1, 1)), count
FROM tags
WHERE count >= :tags_min
ORDER BY SCORE_STRNORM(substr(tag, 1, 1)) LIMIT :start, :max_items
ORDER BY LOWER(substr(tag, 1, 1)) LIMIT :start, :max_items
"
),
['tags_min' => $config->get_int(TagListConfig::TAGS_MIN), 'start' => $start, 'max_items' => $limit]