moolah icon indicating copy to clipboard operation
moolah copied to clipboard

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

Open theomega opened this issue 9 years ago • 1 comments

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.

theomega avatar Nov 14 '15 00:11 theomega

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

arecker avatar Nov 14 '15 06:11 arecker