close db connection at the end

This commit is contained in:
n 2020-06-28 18:30:07 +02:00
parent 5d04d6b4ff
commit 6e6a7baaca
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ def main(host='localhost', port=8086, user='root', password='root', dbname='demo
#print(data)
db.write_points(data)
db.close()
db.close()
def parse_args():
"""Parse the args from main."""