Commit 4e106b5
fix: prevent dataset_metadata row accumulation across scraper runs
The ON CONFLICT DO NOTHING on dataset_metadata had no unique constraint
to trigger on, so every scraper run inserted a new row. Changed to
delete-then-insert for the version being imported. Cleaned stale rows
from seed dump (8 → 1).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 50d4789 commit 4e106b5
2 files changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
175 | 179 | | |
176 | 180 | | |
177 | | - | |
178 | | - | |
| 181 | + | |
179 | 182 | | |
180 | 183 | | |
181 | 184 | | |
| |||
Binary file not shown.
0 commit comments