Skip to content
This repository has been archived by the owner on Apr 14, 2019. It is now read-only.

Fix netfile download #260

Merged
merged 2 commits into from
Aug 14, 2016
Merged

Fix netfile download #260

merged 2 commits into from
Aug 14, 2016

Conversation

tdooner
Copy link
Member

@tdooner tdooner commented Aug 14, 2016

The column headers in data/netfile/csv/netfile_cal201_transaction.csv
did not match the table schema, resulting in an import error.

I updated the corresponding model to match.

The column headers in data/netfile/csv/netfile_cal201_transaction.csv
did not match the table schema, resulting in an import error.

I updated the corresponding model to match.
@mikeubell
Copy link
Contributor

I was just about to put in a request containing much of this :-(

@tdooner
Copy link
Member Author

tdooner commented Aug 14, 2016

Oh, rough :( Sorry for the duplicate work

@adborden
Copy link
Member

👍 Looks good, is it possible to make it work better so that new fields from netfile don't break the import?

The assertion message is great so we know exactly what to fix the next time it comes up.

@tdooner
Copy link
Member Author

tdooner commented Aug 14, 2016

Yeah, I was thinking about that. We could output a warning message, but short of determining the table's schema dynamically (which seems pretty weird), I don't think we're going to be able to automatically do the right thing.

Switch to MongoDB?

@tdooner tdooner merged commit 0bd6608 into master Aug 14, 2016
@mikeubell
Copy link
Contributor

Don't you need to set null=True. I got errors when I did not.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants