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

calculating _daystoclose during ingest; nc code fixes #557

Merged
merged 3 commits into from
May 6, 2020

Conversation

jmensch1
Copy link
Contributor

@jmensch1 jmensch1 commented Apr 23, 2020

This adds three cleaning tasks to the end of the ingest script.

  1. calculate _daystoclose column so that it doesn't need to be calculated every time someone hits the /timetoclose endpoint (fixing calculate time to close during ingest #528)
  2. North Westwood NC is sometimes incorrectly given a code of 0 in the nc column. Sets it to the correct code of 127.
  3. Historical Cultural North NC is sometimes coded as 0 as well. Sets the code to 128.
  • Up to date with dev branch
  • Branch name follows guidelines
  • All PR Status checks are successful
  • Peer reviewed and approved

Any questions? See the getting started guide

@jmensch1 jmensch1 requested a review from sellnat77 April 23, 2020 21:36
log('\nCleaning ingest table.')
table = Ingest.__tablename__
report = []

dropDuplicates(table, report)
switchPrimaryKey(table, report)
removeInvalidClosedDates(table, report)
setDaysToClose(table, report)
fixNorthWestwood(table, report)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ryanmswan This looked fine to me but i just want a sanity check before this gets merged pleassseee 🙏

@sellnat77 sellnat77 requested a review from ryanmswan May 4, 2020 02:04
@sellnat77 sellnat77 merged commit eca9e87 into dev May 6, 2020
@sellnat77 sellnat77 deleted the BACK-CleaningTasks branch May 6, 2020 02:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants