close db connection at the end
This commit is contained in:
parent
5d04d6b4ff
commit
6e6a7baaca
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ def main(host='localhost', port=8086, user='root', password='root', dbname='demo
|
||||||
|
|
||||||
#print(data)
|
#print(data)
|
||||||
db.write_points(data)
|
db.write_points(data)
|
||||||
db.close()
|
db.close()
|
||||||
|
|
||||||
def parse_args():
|
def parse_args():
|
||||||
"""Parse the args from main."""
|
"""Parse the args from main."""
|
||||||
|
|
Loading…
Reference in a new issue