From 6bb2be70f7a73b3d550f82e96f06a71a7c15227e Mon Sep 17 00:00:00 2001 From: ahosking Date: Sun, 3 Jul 2022 01:20:43 -0400 Subject: [PATCH] Fix missed field to tag --- influx_frontend.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/influx_frontend.py b/influx_frontend.py index 11c175f..45e0c4d 100644 --- a/influx_frontend.py +++ b/influx_frontend.py @@ -89,7 +89,7 @@ def add_time(): print() write_api = client.write_api(write_options=SYNCHRONOUS) p = influxdb_client.Point("2016_odyssey").time(timestamp).tag("oilhealth", oilhealth)\ - .tag("fuel", fuel).field("fuelcost", fuelcost).tag("winter", winter).field("odometer", float(odometer)) + .tag("fuel", fuel).tag("fuelcost", fuelcost).tag("winter", winter).field("odometer", float(odometer)) write_api.write(bucket="gas", org=config['DB_ORG'], record=p) print ("Submitting data to DB: {0}".format(json_body)) #client.write_points(json_body)