Data is fetched twice in CSI500 index collector
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 48.7k
- Forks
- 7.7k
- PR merge metrics
- No merged PRs in 30d
Description
result is overwritten with the call to self.get_data_from_baostock(date), and that function contains exactly the same code as the lines above the overwrite. Might be an oversight during refactoring.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Open scripts/data_collector/cn_index/collector.py around lines 401-408 and compare the code before the result overwrite with get_data_from_baostock(date). Confirm the collector fetches the data only once and that the resulting value is preserved after the redundant operation is removed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- data-engineering
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 52/100