-
Notifications
You must be signed in to change notification settings - Fork 265
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
Empty database import updates overall balance #1068
Labels
bug
Something isn't working
Comments
Hi @kenziebourn, thanks for the bug report! Out of curiosity, how did you end up with a date that has empty entries in the database? |
I created that test database file manually and made the date have empty entries |
Also if possible i'd like to be assigned to this issue |
Done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the issue
A user can import a database which has an array of empty values, and the overall balance incorrectly updates.
To Reproduce
Steps to reproduce the behavior:
testdb.ttldb
file provided or create one with the contents:[ { "type": "flexible", "date": "2023-05-21", "values": [] } ]
testdb.ttldb
fileExpected behavior
When importing a database, I expected that the app would check for an array of empty values before validating, and fail if there is no values in the database file. And even if the app should accept empty values, the overall time balance shouldn't be affected since there is no times entered.
Environment
testdb.zip
The text was updated successfully, but these errors were encountered: