Skip to content

Commit

Permalink
fix get v0 data error
Browse files Browse the repository at this point in the history
  • Loading branch information
SunsetWolf committed May 22, 2024
1 parent 117f67d commit 9bb4259
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qlib/tests/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def __init__(self, delete_zip_file=False):
self.delete_zip_file = delete_zip_file

def merge_remote_url(self, file_name: str):
return f"{self.REMOTE_URL}/{file_name}"
return f"{self.REMOTE_URL}/{file_name}" if "/" in file_name else f"{self.REMOTE_URL}/v0/{file_name}"

def download_data(self, file_name: str, target_dir: [Path, str], delete_old: bool = True):
"""
Expand Down

0 comments on commit 9bb4259

Please sign in to comment.