init
This commit is contained in:
@@ -95,8 +95,8 @@ class HTS_DAILY (HTS):
|
|||||||
conn.close()
|
conn.close()
|
||||||
|
|
||||||
for idx, item in enumerate(items):
|
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'):
|
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:
|
||||||
continue
|
break
|
||||||
|
|
||||||
stock_code = item[0]
|
stock_code = item[0]
|
||||||
stock_name = item[1]
|
stock_name = item[1]
|
||||||
|
|||||||
Reference in New Issue
Block a user