This commit is contained in:
dosangyoon
2022-08-13 01:02:51 +09:00
parent 397a9d12e9
commit 8ec05b8447
3 changed files with 66 additions and 50 deletions

View File

@@ -568,6 +568,19 @@ class HTS:
print("update...", stock_code, ymd)
return
def clearLabel(self, db_filename, stock_code, ymd):
tableName = 'hts'
conn = sqlite3.connect(db_filename)
cursor = conn.cursor()
cursor.execute('update ' + tableName + ' set label=? WHERE CODE=? and ymd=? ', (0, stock_code, ymd,))
conn.commit()
cursor.close()
conn.close()
print("delete...", stock_code, ymd)
return
def makeLabel(self, db_filename, stock_code, ymd, hms, label):
tableName = 'hts'
conn = sqlite3.connect(db_filename)