mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-20 12:20:29 +08:00
BUG: Fix data cache filepath on Windows.
Prevent the ':' char, generated by converting a datetime to a string, from creating on incompatible filepath for Windows.
This commit is contained in:
@@ -260,7 +260,7 @@ must specify stocks or indexes"""
|
||||
cache_filename = "{stock}-{start}-{end}.csv".format(
|
||||
stock=stock,
|
||||
start=start,
|
||||
end=end)
|
||||
end=end).replace(':', '-')
|
||||
cache_filepath = get_cache_filepath(cache_filename)
|
||||
if os.path.exists(cache_filepath):
|
||||
stkd = pd.DataFrame.from_csv(cache_filepath)
|
||||
|
||||
Reference in New Issue
Block a user