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

Duplicate runs of the "rate" script result in duplicate entries #23

Open
theomega opened this issue Nov 14, 2015 · 1 comment
Open

Duplicate runs of the "rate" script result in duplicate entries #23

theomega opened this issue Nov 14, 2015 · 1 comment

Comments

@theomega
Copy link

If you (accidentially) run the "rates" script twice, you end up with two times the "magic number" subtracted/added. The transact_rate_balance method should check if there is already an entry for today and if yes update that one instead of creating a new one.

@arecker
Copy link
Owner

arecker commented Nov 14, 2015

Ah good catch. I'll be sure to add a check.

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

No branches or pull requests

2 participants