This commit is contained in:
dsyoon
2022-09-12 19:08:31 +09:00
parent d3d897f2da
commit 833271e699

View File

@@ -862,8 +862,7 @@ class AnalyzerSqlite:
print("Daily # :", rowid, ", CODE: ", stock['CODE'], ", NAME: ", stock['NAME'])
sql = 'SELECT ymd, close, diff, open, high, low, volume FROM ' + stockTableName + ' where CODE=? order by ymd desc '
#if result is not None:
# sql += ' limit 300'
sql += ' limit 350'
cursor.execute(sql, (stock['CODE'],))
items = cursor.fetchall()
@@ -939,6 +938,7 @@ class AnalyzerSqlite:
print(type, "# :", rowid, ", CODE: ", stock['CODE'], ", NAME: ", stock['NAME'])
sql = 'SELECT ymd, close, diff, open, high, low, volume FROM ' + stockTableName + ' where CODE=? order by ymd desc '
sql += ' limit 350'
cursor.execute(sql, (stock['CODE'],))
items = cursor.fetchall()