TheAxelander / OpenBudgeteer

OpenBudgeteer is a budgeting app based on the Bucket Budgeting Principle
https://theaxelander.github.io
MIT License
759 stars 43 forks source link

[pre-release] Account Page: Display transactions failed #159

Closed TheAxelander closed 1 year ago

TheAxelander commented 1 year ago

Happens on my QA environment

image

Lucaber commented 1 year ago

found the issue here when an account has less than 100 transactions: https://github.com/TheAxelander/OpenBudgeteer/commit/4670b08d03cd255f1a04ae362e336cbd3842e1f0#diff-f6d582a2aac50834322b6f981e1b557285982313b9d28dd7ace225c0f7dc870cR244-L263

TheAxelander commented 1 year ago

Damn, didn't expected that GetRange just fails if there are less than 100 transactions. I thought LINQ will be then translated into something like SELECT TOP 100. The right function would be Take(100) here.

Thanks a lot for that.