init
This commit is contained in:
@@ -862,8 +862,7 @@ class AnalyzerSqlite:
|
|||||||
print("Daily # :", rowid, ", CODE: ", stock['CODE'], ", NAME: ", stock['NAME'])
|
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 '
|
sql = 'SELECT ymd, close, diff, open, high, low, volume FROM ' + stockTableName + ' where CODE=? order by ymd desc '
|
||||||
#if result is not None:
|
sql += ' limit 350'
|
||||||
# sql += ' limit 300'
|
|
||||||
cursor.execute(sql, (stock['CODE'],))
|
cursor.execute(sql, (stock['CODE'],))
|
||||||
items = cursor.fetchall()
|
items = cursor.fetchall()
|
||||||
|
|
||||||
@@ -939,6 +938,7 @@ class AnalyzerSqlite:
|
|||||||
print(type, "# :", rowid, ", CODE: ", stock['CODE'], ", NAME: ", stock['NAME'])
|
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 = 'SELECT ymd, close, diff, open, high, low, volume FROM ' + stockTableName + ' where CODE=? order by ymd desc '
|
||||||
|
sql += ' limit 350'
|
||||||
cursor.execute(sql, (stock['CODE'],))
|
cursor.execute(sql, (stock['CODE'],))
|
||||||
items = cursor.fetchall()
|
items = cursor.fetchall()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user