category id

This commit is contained in:
2026-09-08 12:17:56 +05:30
parent d54fadef20
commit 12269deeda
3 changed files with 34 additions and 5 deletions

View File

@@ -132,7 +132,11 @@ async function main() {
for (const plan of plans) {
if (!plan.aisle) {
orphans.push(plan);
// Only worth reporting if the product has no aisle ALREADY. Several were
// filed by hand long before any of this, and listing those as "would stay
// under Uncategorized" says the opposite of what is true.
if (plan.from === 0) orphans.push(plan);
else unchanged += 1;
continue;
}
const to = aisleIds.get(plan.aisle.toLowerCase()) ?? 0;