init
This commit is contained in:
@@ -551,7 +551,7 @@ class HTS:
|
|||||||
conn = sqlite3.connect(os.path.join(self.RESOURCE_PATH, "hts.db"))
|
conn = sqlite3.connect(os.path.join(self.RESOURCE_PATH, "hts.db"))
|
||||||
cursor = conn.cursor()
|
cursor = conn.cursor()
|
||||||
|
|
||||||
cursor.execute('SELECT ymd, hms, open, high, low, close, vol FROM ' + tableName + ' WHERE CODE=? and ymd=? order by ymd, hms', (stock_code, lastday,))
|
cursor.execute('SELECT ymd, hms, open, high, low, close, volume FROM ' + tableName + ' WHERE CODE=? and ymd=? order by ymd, hms', (stock_code, lastday,))
|
||||||
db_result = cursor.fetchall()
|
db_result = cursor.fetchall()
|
||||||
for rows in db_result:
|
for rows in db_result:
|
||||||
ymd = rows[0] # hts.날짜
|
ymd = rows[0] # hts.날짜
|
||||||
|
|||||||
Reference in New Issue
Block a user