Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Linlang Lv (iSoftStone Information) committed May 17, 2024
1 parent 6f765db commit 4c24ec2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/data_collector/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,9 @@ def _get_symbol():
if len(_symbols) < 3900:
raise ValueError("request error")

_symbols = [_symbol + '.ss' if _symbol.startswith('6') else _symbol + '.sz' if _symbol.startswith(('0', '3')) else None for _symbol in _symbols]
_symbols = [_symbol for _symbol in _symbols if _symbol is not None]

return set(_symbols)

if _HS_SYMBOLS is None:
Expand Down

0 comments on commit 4c24ec2

Please sign in to comment.