Commit 0562fe83 by zhangheng

update:"taos插入"

parent 8093dc38
......@@ -35,8 +35,8 @@ class TDConn:
"""插入数据"""
try:
sql = f"INSERT INTO {table} (time, symbol, target, price) VALUES {data};"
print(sql)
cl.execute(sql)
# print("插入数据成功")
except Exception as e:
print(e)
......@@ -121,7 +121,6 @@ def main():
# 插入数据
if sql != '':
TDConn.TD_insert(cl, "price_binance", sql)
print("插入数据成功")
else:
time.sleep(1)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment