{"type":"video","version":"1.0","html":"<iframe src=\"https://www.loom.com/embed/202407d70af847e2a917966c1956ed99\" 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/202407d70af847e2a917966c1956ed99-1951eb78135674c4.gif","duration":300.48,"title":"Fixing Dashboard Revenue Mismatches and Caching","description":"This Loom explains fixes made to a dashboard revenue summary endpoint and related calculations. The author updated dashboard/summary to add month granularity and kept currency as the default USD, then addressed caching issues in GetReview Summary and Revenue Summary by changing the Redis cache key to include tenant ID, month, and currency. They also corrected revenue mismatches caused by missing time zone handling in monthly revenue calculations. Finally, they resolved small total revenue discrepancies by replacing float operations with Python’s decimal library for better financial precision."}