mirror of
https://github.com/wassname/catalyst.git
synced 2026-08-18 11:50:11 +08:00
fixed catastrophic bug in load_from_directory
and added a new test case was not iterating over lookup date directory names, and therefore mising all by one list of stocks. discovered because of differing sort orders between my local machine, other devs, and travis ci.
This commit is contained in:
@@ -127,8 +127,8 @@ def load_from_directory(list_name):
|
||||
tzinfo=pytz.utc)
|
||||
data[kd] = {}
|
||||
kd_path = os.path.join(dir_path, kd_name)
|
||||
for ld_name in listdir(os.path.join(dir_path, kd_name)):
|
||||
ld = datetime.strptime(kd_name, DATE_FORMAT).replace(
|
||||
for ld_name in listdir(kd_path):
|
||||
ld = datetime.strptime(ld_name, DATE_FORMAT).replace(
|
||||
tzinfo=pytz.utc)
|
||||
data[kd][ld] = {}
|
||||
ld_path = os.path.join(kd_path, ld_name)
|
||||
|
||||
Reference in New Issue
Block a user