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:
Emi Matchu 2021-04-07 16:00:14 -07:00
parent b0d5ad76f2
commit 3ea6107f4f

View file

@ -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"
`); `);