This commit is contained in:
dsyoon
2023-01-25 13:33:40 +09:00
parent bc5bf369f8
commit 9a1a43b428

View File

@@ -95,8 +95,8 @@ class HTS_DAILY (HTS):
conn.close()
for idx, item in enumerate(items):
if datetime.strptime(today + " 090000", '%Y%m%d %H%M%S') < THIS_TIME < datetime.strptime(today + " 151500", '%Y%m%d %H%M%S'):
continue
if THIS_TIME < datetime.strptime(today + " 090000", '%Y%m%d %H%M%S') or datetime.strptime(today + " 151500", '%Y%m%d %H%M%S') < THIS_TIME:
break
stock_code = item[0]
stock_name = item[1]