Skip to content

Commit 90402da

Browse files
committed
Merge pull request influxdata#25 from william-p/flake8
Fix: flake8 tests
2 parents 4839f30 + a1dc8a3 commit 90402da

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

influxdb/client.py

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def switch_user(self, username, password):
6262
def write_points(self, *args, **kwargs):
6363
"""
6464
Write to multiple time series names
65-
65+
6666
Parameters
6767
----------
6868
batch_size : Optional. Int value to write the points in batches instead
@@ -83,14 +83,18 @@ def list_chunks(l, n):
8383
name = data.get('name')
8484
columns = data.get('columns')
8585
point_list = data.get('points')
86-
total_batches = len(point_list) * 1.0/batch_size
86+
8787
for batch in list_chunks(point_list, batch_size):
88-
data = [{"points": batch,
89-
"name": name,
90-
"columns": columns}]
88+
data = [{
89+
"points": batch,
90+
"name": name,
91+
"columns": columns
92+
}]
9193
time_precision = kwargs.get('time_precision', 's')
92-
self.write_points_with_precision(data=data,
94+
self.write_points_with_precision(
95+
data=data,
9396
time_precision=time_precision)
97+
9498
return True
9599

96100
return self.write_points_with_precision(*args, **kwargs)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy