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

Proper submission count on CSV imports #1071

Merged
merged 7 commits into from
Jul 24, 2017
Merged

Conversation

ukanga
Copy link
Member

@ukanga ukanga commented Jul 22, 2017

closes #1065

pass
if additions % getattr(settings,
'EXPORT_TASK_PROGRESS_UPDATE_BATCH',
100) == 0:
Copy link
Member

Choose a reason for hiding this comment

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

Is there no default? 100 is a magic number

Copy link
Member Author

Choose a reason for hiding this comment

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

Noted, will set a static variable for this.

clean_and_parse_xml,
get_uuid_from_xml,
get_deprecated_uuid_from_xml,
get_submission_date_from_xml)
Copy link
Member

Choose a reason for hiding this comment

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

I actually prefer this style, but either consistently is fine, would be nice to define this in the style checker

Copy link
Member Author

Choose a reason for hiding this comment

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

This is the work of yapf, I will add a config for it.

Copy link
Member Author

Choose a reason for hiding this comment

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

Using the default pep8 style I think.

@ukanga ukanga merged commit 4592509 into master Jul 24, 2017
@ukanga ukanga deleted the 1065-csv-import-submission-count branch July 24, 2017 09:05
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.

CSV Imports, update submission count correctly after successful import
2 participants