-
Notifications
You must be signed in to change notification settings - Fork 134
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
Conversation
onadata/libs/utils/csv_import.py
Outdated
pass | ||
if additions % getattr(settings, | ||
'EXPORT_TASK_PROGRESS_UPDATE_BATCH', | ||
100) == 0: |
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.
Is there no default? 100 is a magic number
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.
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) |
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.
I actually prefer this style, but either consistently is fine, would be nice to define this in the style checker
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.
This is the work of yapf, I will add a config for it.
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.
Using the default pep8 style I think.
closes #1065