Files
nuzlocke-tracker/.beans/nuzlocke-tracker-qgfv--clean-up-stale-duplicate-routes-in-game-json-files.md

17 lines
798 B
Markdown
Raw Normal View History

---
# nuzlocke-tracker-qgfv
title: Clean up stale duplicate routes in game JSON files
status: completed
type: task
priority: normal
created_at: 2026-02-13T07:24:40Z
updated_at: 2026-02-13T07:25:56Z
---
Game JSON files (especially Gen 7) have stale route entries from a previous import that used different naming. The seeder upserted without cleaning up, so the DB accumulated both old (e.g. 'Route 1') and new (e.g. 'Alola Route 1') entries. Then --export dumped both to JSON, creating duplicates with conflicting order values.
## Checklist
- [ ] Identify all affected game JSON files
- [ ] Remove stale/duplicate route entries (the ones not in route_order.json)
- [ ] Reassign sequential order values to fix the gaps
- [ ] Verify no data loss (the kept routes should have all the encounter data)