Update README for castle-rock; improve nebraska workaround

This commit is contained in:
Chandler Swift 2024-02-03 01:36:11 -06:00
parent a44f8c23b6
commit c125525413
Signed by: chandlerswift
GPG key ID: A851D929D52FB93F
2 changed files with 12 additions and 8 deletions

View file

@ -65,7 +65,11 @@ for state, baseURL in states.items():
print(f"warn: Differing types detected: {c['views']}")
if view['category'] == 'VIDEO':
if state == "Nebraska":
print(c)
# Nebraska has mislabeled a small amount of their data;
# there is one location with 4 views labeled as "VIDEO"
# which are not, in fact, video-containing views
view['category'] = "PHOTO"
continue
videoCount += 1
if len(view['sources']) != 1:
raise Exception(f"Unexpected number of sources ({len(view['sources'])})")