init
This commit is contained in:
@@ -492,6 +492,7 @@ class HTS:
|
||||
self.cursor.execute('DELETE FROM hts WHERE CODE=? and ymd=? and hms=?', (stock_code, ymd, hms,))
|
||||
self.cursor.execute("INSERT INTO hts (CODE, NAME, ymd, hms, close, open, high, low, volume) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?)", (stock_code, stock_name, ymd, hms, close, open, high, low, volume))
|
||||
|
||||
time.sleep(0.5)
|
||||
self.conn.commit()
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user