This commit is contained in:
dosangyoon
2022-04-02 21:05:03 +09:00
parent 5e43d8315e
commit 505e32eba5
2 changed files with 3 additions and 2 deletions

View File

@@ -824,8 +824,8 @@ class AnalyzerSqlite:
result = cursor.fetchone()
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'
#if result is not None:
# sql += ' limit 300'
cursor.execute(sql, (stock['CODE'],))
items = cursor.fetchall()

View File

@@ -46,6 +46,7 @@ stockCrawler.crawl_usa_stocks(stockFileName)
stockCrawler.crawl_etf_stocks(stockFileName)
stockCrawler.crawl_stocks(stockFileName)
print("\n[종목 분석]")
# S: 분석까지 진행
inFileName = PROJECT_HOME + '/resources/stock.db'