Fix precedence error in allWakaValues query
Oooooops, this was registering as `(is_nc) OR (is_manually_nc AND locale = "en")`. Returned all locales for auto-detected NC items, not necessary!
This commit is contained in:
parent
b0d5ad76f2
commit
3ea6107f4f
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ async function loadAllNcItemNamesAndIds() {
|
||||||
SELECT items.id, item_translations.name FROM items
|
SELECT items.id, item_translations.name FROM items
|
||||||
INNER JOIN item_translations ON item_translations.item_id = items.id
|
INNER JOIN item_translations ON item_translations.item_id = items.id
|
||||||
WHERE
|
WHERE
|
||||||
items.rarity_index IN (0, 500) OR is_manually_nc = 1
|
(items.rarity_index IN (0, 500) OR is_manually_nc = 1)
|
||||||
AND item_translations.locale = "en"
|
AND item_translations.locale = "en"
|
||||||
`);
|
`);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue