Skip to content

Commit e1990e4

Browse files
committed
docs: update CHANGELOG.md
1 parent 52d4d6a commit e1990e4

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
## 1.46.0 [unreleased]
22

3+
### Examples:
4+
1. [#664](https://github.com/influxdata/influxdb-client-python/pull/664/): Multiprocessing example uses new source of data
5+
36
## 1.45.0 [2024-08-12]
47

58
### Bug Fixes

examples/import_data_set_multiprocessing.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def parse_rows(rows, total_size):
114114
counter_.value += len(_parsed_rows)
115115
if counter_.value % 10_000 == 0:
116116
print('{0:8}{1}'.format(counter_.value, ' - {0:.2f} %'
117-
.format(100 * float(progress_.value) / float(int(total_size))) if total_size else ""))
117+
.format(float(progress_.value) / float(int(total_size))) if total_size else ""))
118118
pass
119119

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

154155
"""
155156
Open GZIP stream

0 commit comments

Comments
 (0)