{"type":"video","version":"1.0","html":"<iframe src=\"https://www.loom.com/embed/05bbcb4e47f2437e85055fa0d9ebbe14\" frameborder=\"0\" width=\"1662\" height=\"1246\" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>","height":1246,"width":1662,"provider_name":"Loom","provider_url":"https://www.loom.com","thumbnail_height":1246,"thumbnail_width":1662,"thumbnail_url":"https://cdn.loom.com/sessions/thumbnails/05bbcb4e47f2437e85055fa0d9ebbe14-b17757d5719fab1f.gif","duration":231.851,"title":"Fixing Monthly Financial Values with Decimal","description":"This Loom explains the fixes made to ensure accurate financial revenue calculations by avoiding float precision issues. The author used Python’s Decimal library and updated the backend cache keys with month granularity, then added month support to the front end so users can view revenues by month. They also corrected a conversion where total revenue was changed into a float, and switched frontend value handling to strings or Decimal instead of floats. They demonstrate the results, showing Beach House Alpha March 2024 now correctly displays 1000, with other clients (Lakeside Cottage and Urban Loft) also showing correct values. The properties dropdown for tenants remains hard coded because a tenant property-list endpoint was not implemented due to time constraints."}