Added the code to handle the NaN and return null in the muster roll report section by yatmesh
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user