From 46cad058dee1a3c006af8447722bee5ac11f4c97 Mon Sep 17 00:00:00 2001 From: yatmesh Date: Tue, 25 Nov 2025 15:13:05 +0530 Subject: [PATCH] Added the code to handle the NaN and return null in the muster roll report section by yatmesh --- backend/api/blueprints/reports/muster_roll.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backend/api/blueprints/reports/muster_roll.py b/backend/api/blueprints/reports/muster_roll.py index 31421d6..f259831 100644 --- a/backend/api/blueprints/reports/muster_roll.py +++ b/backend/api/blueprints/reports/muster_roll.py @@ -202,6 +202,10 @@ async def muster_roll_report_generate( # "Direct Reporting": unique_reportees # } # report_data = unique_combos + ############## + # Added by Yatmesh on 25 nov 15:08 + report_data = report_data.where(report_data.notna(), None) + ################################### report_data = report_data.to_dict(orient = "records") success = True