Skip to content

Commit 2b3a0b8

Browse files
authored
fix(3523/3522/3524): python code gen formatting (#3767)
1 parent 272b7b4 commit 2b3a0b8

File tree

5 files changed

+16
-16
lines changed

5 files changed

+16
-16
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
client.close()
1+
client.close()
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
query = '<%= query %>'
2-
tables = client.query_api().query(query, org=org)
3-
for table in tables:
4-
for record in table.records:
5-
print(record)
1+
query = """<%= query %>"""
2+
tables = client.query_api().query(query, org=org)
3+
for table in tables:
4+
for record in table.records:
5+
print(record)
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
write_api = client.write_api(write_options=SYNCHRONOUS)
1+
write_api = client.write_api(write_options=SYNCHRONOUS)
22

3-
data = "mem,host=host1 used_percent=23.43234543"
4-
write_api.write(bucket, org, data)
3+
data = "mem,host=host1 used_percent=23.43234543"
4+
write_api.write(bucket, org, data)
55

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
point = Point("mem") \
2-
.tag("host", "host1") \
3-
.field("used_percent", 23.43234543) \
4-
.time(datetime.utcnow(), WritePrecision.NS)
1+
point = Point("mem") \
2+
.tag("host", "host1") \
3+
.field("used_percent", 23.43234543) \
4+
.time(datetime.utcnow(), WritePrecision.NS)
55

6-
write_api.write(bucket, org, point)
6+
write_api.write(bucket, org, point)
77

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
sequence = ["mem,host=host1 used_percent=23.43234543",
1+
sequence = ["mem,host=host1 used_percent=23.43234543",
22
"mem,host=host1 available_percent=15.856523"]
3-
write_api.write(bucket, org, sequence)
3+
write_api.write(bucket, org, sequence)
44

0 commit comments

Comments
 (0)