From 53007b74212c47093bffb6e7cdb5f014930a654d Mon Sep 17 00:00:00 2001 From: Khushal P Soonderji Date: Fri, 28 Nov 2025 11:32:16 +0530 Subject: [PATCH] (20251128) Solved the 'NaN' bug in muster roll caching in the cron script. --- cron/reports.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cron/reports.py b/cron/reports.py index aed063b..6c635d3 100644 --- a/cron/reports.py +++ b/cron/reports.py @@ -152,7 +152,7 @@ def get_muster_roll(cosec_creds: dict): "Grade Name", "Branch Name", "Department Name", "Direct Reporting", "Level-1" ]] - report_data.where(report_data.notna(), None) + report_data = report_data.where(report_data.notna(), None) report_data = report_data.to_dict(orient = "records") # Save the data to a JSON file: