Skip to content

Commit d5d408f

Browse files
committed
fix: lint with black
1 parent 4582cc4 commit d5d408f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

scripts/data_collector/utils.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,7 @@ def get_calendar_list(bench_code="CSI300") -> List[pd.Timestamp]:
6969

7070
def _get_calendar(url):
7171
ua = UserAgent()
72-
headers = {
73-
"User-Agent": ua.random
74-
}
72+
headers = {"User-Agent": ua.random}
7573
_value_list = requests.get(url, timeout=None, headers=headers).json()["data"]["klines"]
7674
return sorted(map(lambda x: pd.Timestamp(x.split(",")[0]), _value_list))
7775

0 commit comments

Comments
 (0)