add bi
This commit is contained in:
parent
25c19e3757
commit
dce466cae7
|
@ -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())
|
||||
|
|
Loading…
Reference in New Issue