Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add check on result length before adding to cache #235

Merged
merged 1 commit into from
Aug 26, 2021
Merged

Add check on result length before adding to cache #235

merged 1 commit into from
Aug 26, 2021

Conversation

tjburch
Copy link
Collaborator

@tjburch tjburch commented Aug 25, 2021

Small check prompted by issue #233. Skips caching in cases where the result is length 0.

Not an exhaustive fix (e.g. if someone is staging August code and runs statcast("2021-08-01","2021-08-31") on August 25, they'll still have a non-zero dataframe but be missing a few days). Could consider something more sophisticated using datetime in the future, but this at least provides a little protection.

@schorrm schorrm merged commit a28f141 into jldbc:master Aug 26, 2021
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.

2 participants