Commit a6864b8
Fix at-large district GEOID round-trip conversion
At-large districts (AK, DE, ND, SD, VT, WY) have GEOID ending in 00
(e.g., DE=1000) but display as XX-01 via max(cd%100, 1). The worker
naively converted DE-01 back to 1001 which didn't exist in the DB.
Now tries the direct conversion first, then falls back to finding the
sole CD for that state's FIPS prefix (at-large case).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 8e402c7 commit a6864b8
1 file changed
Lines changed: 24 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
73 | 73 | | |
74 | | - | |
75 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
76 | 96 | | |
77 | 97 | | |
78 | 98 | | |
| |||
0 commit comments