Skip to content

Commit

Permalink
docs: update CHANGELOG.md
Browse files Browse the repository at this point in the history
  • Loading branch information
bednar committed Aug 12, 2024
1 parent 52d4d6a commit e1990e4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
## 1.46.0 [unreleased]

### Examples:
1. [#664](https://github.com/influxdata/influxdb-client-python/pull/664/): Multiprocessing example uses new source of data

## 1.45.0 [2024-08-12]

### Bug Fixes
Expand Down
7 changes: 4 additions & 3 deletions examples/import_data_set_multiprocessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def parse_rows(rows, total_size):
counter_.value += len(_parsed_rows)
if counter_.value % 10_000 == 0:
print('{0:8}{1}'.format(counter_.value, ' - {0:.2f} %'
.format(100 * float(progress_.value) / float(int(total_size))) if total_size else ""))
.format(float(progress_.value) / float(int(total_size))) if total_size else ""))
pass

queue_.put(_parsed_rows)
Expand Down Expand Up @@ -148,8 +148,9 @@ def init_counter(counter, progress, queue):
Open URL and for stream data
"""
response = urlopen(url)
if response.headers:
content_length = response.headers['Content-length']
# we can't get content length from response because the gzip stream content length is unknown
# so we set it to this value, just for progress display
content_length = 23143223

"""
Open GZIP stream
Expand Down

0 comments on commit e1990e4

Please sign in to comment.