Skip to content

Commit

Permalink
Slight output improvement in the progressbar-based commands
Browse files Browse the repository at this point in the history
Signed-off-by: Aurélien Bompard <[email protected]>
  • Loading branch information
abompard committed Jun 21, 2024
1 parent 4a9ee57 commit dbd6445
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions datanommer.commands/datanommer/commands/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ def iterate_over_messages(query, start, chunk_size):
chunk_start = start
first_run = True
while has_messages:
if bar.is_hidden:
click.echo(f"Working on {chunk_size} messages sent after {chunk_start}")
chunk_query = query.where(m.Message.timestamp >= chunk_start).limit(chunk_size)
if not first_run:
chunk_query = chunk_query.offset(1)
Expand Down

0 comments on commit dbd6445

Please sign in to comment.