This commit is contained in:
dsyoon
2023-01-20 20:27:39 +09:00
parent 2f2db27f7c
commit 44df67e156
2 changed files with 4 additions and 2 deletions

View File

@@ -431,6 +431,7 @@ class AnalyzerSqlite:
self.makeDirectory(outPath)
stockTableName = 'stock'
fnguideTableName = 'fnguide'
stockAnalysisTableName = 'stock_analysis'
stockAnalysisWeeklyTableName = 'stock_analysis_weekly'
stockAnalysisMonthlyTableName = 'stock_analysis_monthly'
@@ -438,7 +439,8 @@ class AnalyzerSqlite:
conn = sqlite3.connect(self.stockFileName)
cursor = conn.cursor()
cursor.execute('SELECT distinct code, name FROM ' + stockTableName + ' order by code')
#cursor.execute('SELECT distinct code, name FROM ' + stockTableName + ' order by code')
cursor.execute('select CODE, NAME, max(ymd) as ymd from ' + fnguideTableName + ' where type != "E" group by 1 order by total_assets desc')
items = cursor.fetchall()
cursor.close()