diff --git a/taptap/tap2influxdb.py b/taptap/tap2influxdb.py index d648add..812b5fc 100644 --- a/taptap/tap2influxdb.py +++ b/taptap/tap2influxdb.py @@ -19,7 +19,7 @@ class TAP2Influx: self.tga = FromTga(url=url, token=api_secret) self.day = day self.influx = InfluxDBClient('10.10.3.19', '8086', 'miles', 'aspect', 'tap_data') - self.measurement = "tapdata_new" + self.measurement = "tapdata" def get_tga_data(self): sql = f"""SELECT @@ -46,11 +46,11 @@ class TAP2Influx: if data: try: for line in data: - gameid, catename, cate, title, score, tag, reserve, watch, download, sell, review, topic, createdat = line + gameid, catename, cate, title, score, order, tag, reserve, watch, download, sell, review, topic, createdat = line tags = {"gameid": int(gameid), "catename": catename} fields = {"title": title, "score": score, "tag": tag, "reserve": reserve, "watch": watch, "download": download, "sell": sell, "review": review, "topic": topic, "cate": cate, - "catedat": createdat} + "catedat": createdat, "order": order} temp = {"measurement": self.measurement, "tags": tags, "fields": fields} body.append(temp) except Exception: