Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

find/fix cases where source with pub_state isn't in appropriate state collection (US only) #8

Open
rahulbot opened this issue Dec 6, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@rahulbot
Copy link

rahulbot commented Dec 6, 2024

We have at least one source that has a has a pub_state=US-MA (Athol Daily News) but is not included in the Massachusetts, United States - State & Local collection (I just fixed this manually). I imagine this is either (a) oversight from when it was created or (b) error from the massive media merge.

It wouldn't be too hard to run a script to find and list these for manual fixing, something like:

build a manual lookup able that maps from state code to collection
for each media _source with a pub_state in 50 us options (US-MA, US-AK, etc):
    check the lookup table for the collection is _should_ be in
    if the source isn't in that collection, add it to a list with the source id and collection id

Once we review that list it could be processed automatically by another script to make fixes (if that is possible via API).

@rahulbot rahulbot added the enhancement New feature or request label Dec 6, 2024
@rahulbot
Copy link
Author

rahulbot commented Dec 6, 2024

Slight overlap with topic of #2, but not quite close enough to tackle together.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant