This commit is contained in:
lwl0608 2024-05-08 17:02:46 +08:00
parent 25c19e3757
commit dce466cae7
1 changed files with 3 additions and 2 deletions

View File

@ -33,8 +33,9 @@ class S:
return 0
def insert_flow(self, ptime, flow):
sql = '''insert into vas_yoy_flow (ptime, flow) values ({}, {})'''.format(ptime, flow)
return self.mysql_db_bi.exec(sql, ())
sql = '''insert into vas_yoy_flow (ptime, flow) values (%s,%s)'''
print(sql)
return self.mysql_db_bi.exec(sql, (ptime, flow))
def proc(self):
time_now = int(time.time())