init
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user