-
Notifications
You must be signed in to change notification settings - Fork 25
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
operation logs: improve dump_operation_logs
CLI
#2154
Conversation
dump_operation_logs
CLI
@@ -87,7 +87,7 @@ def dump_operation_logs(outfile_name, year): | |||
|
|||
index_count = 0 | |||
outfile = JsonWriter(outfile_name) | |||
with click.progressbar(search.scan()) as bar: | |||
with click.progressbar(search.scan(), length=search.count()) as bar: |
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.
Could the commit message be more precise? Add the search count to the progress bar or something?
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.
Commit message title proposition: operation logs: add progress bar to
dump_operation_logs CLI
* Adds length to progress bar for display of remaining time. Co-Authored-by: Peter Weber <[email protected]>
3464d60
to
35a79bc
Compare
Co-Authored-by: Peter Weber [email protected]
Why are you opening this PR?
Dependencies
My PR depends on the following
rero-ils-ui
's PR(s):How to test?
Code review check list