(20251128) Solved the 'NaN' bug in muster roll caching in the cron script.
This commit is contained in:
+1
-1
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user