Closed doughepi closed 1 year ago
Great, thanks for finding these bugs, and for trying out the fix :). I don't use imports via Fava, so this is helpful.
Thanks for the fix! I was just about to create a report for this, but it was already taken care of :)
For the search-bots, this is the error message produced by Fava:
TypeError: Object of type count is not JSON serializable
The Fava API was having trouble jsonifying imports. Turns out it was because of a single
count
object that made its way into metadata for balance entries. I looked at the data it was attempting to run throughjson.dumps
and saw this:I suspect it's because
next()
isn't being used on this metadata initializationSuspected fix is to do
next(counter)
.edit: tested this fix on my machine--works!