This commit is contained in:
dsyoon
2023-01-20 20:20:35 +09:00
parent 7a0038bf8b
commit 2f2db27f7c

View File

@@ -64,7 +64,7 @@ class HTS_DAILY (HTS):
valid_company = set()
conn = sqlite3.connect(os.path.join(self.RESOURCE_PATH, "stock.db"))
cursor = conn.cursor()
cursor.execute('select CODE, NAME, max(ymd) as ymd from fnguide where type != "E" group by 1 order by total_assets desc limit 2400')
cursor.execute('select CODE, NAME, max(ymd) as ymd from (select * from fnguide where type != "E" and total_assets >= 0 order by total_assets DESC) group by 1 order by total_assets desc')
items = cursor.fetchall()
cursor.close()
conn.close()