-
Notifications
You must be signed in to change notification settings - Fork 0
Handle duplicate data for WQP TDS data #56
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
Conversation
chasetmartin
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work, looks good to me. Only one comment that does not relate to the code logic.
backend/connectors/wqp/source.py
Outdated
| if record["ActivityStartDate"] == date | ||
| } | ||
| if len(date_records.items()) > 1: | ||
| if "70301" in date_records.keys(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! My only suggestion is to consider making your preferred USGSPCodes 70301 and 70303 a variable for reusability and ease of adding new ones, but that's not necessary for functionality.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good call - that's a good practice. I've made the p codes variables in constants.py so that they can be used throughout (may need them in nwis eventually)
chasetmartin
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, like we discussed, just considering adding record date to the log for removing duplicates.
Uh oh!
There was an error while loading. Please reload this page.