Skip to content

Bugfix for writing same information to file#3

Open
hmate9 wants to merge 1 commit intoheqian:masterfrom
hmate9:fileWriteFix
Open

Bugfix for writing same information to file#3
hmate9 wants to merge 1 commit intoheqian:masterfrom
hmate9:fileWriteFix

Conversation

@hmate9
Copy link

@hmate9 hmate9 commented Apr 3, 2019

Because the library appends to the history file as we get the data, we have to clear out history cache to avoid writing the same data (that we have already downloaded) in the next loop.

Another alternative would be to only write to the file once, when all desired historical data has been downloaded. I decided to opt for this easier to implement approach.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant