From b65a1bcdb15b32b7c7bc707dcc8992a5ff2d46cf Mon Sep 17 00:00:00 2001 From: pengtao Date: Wed, 27 Nov 2019 11:42:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0tap=202=20influxdb=E8=84=9A?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- taptap/tap2influxdb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/taptap/tap2influxdb.py b/taptap/tap2influxdb.py index 1cdce84..46071e1 100644 --- a/taptap/tap2influxdb.py +++ b/taptap/tap2influxdb.py @@ -48,7 +48,7 @@ class TAP2Influx: try: for line in data: gameid, catename, cate, title, score, tag, reserve, watch, download, sell, review, topic, createdat = line - tags = {"gameid": gameid, "catename": catename, "cate": cate, "catedat": createdat} + tags = {"gameid": str(gameid), "catename": catename, "cate": cate, "catedat": createdat} fields = {"title": title, "score": score, "tag": tag, "reserve": reserve, "watch": watch, "download": download, "sell": sell, "review": review, "topic": topic} temp = {"measurement": self.measurement, "tags": tags, "fields": fields}