Skip to content

Commit

Permalink
fix(Monthly Attendance Sheet): consideration of None values while gro…
Browse files Browse the repository at this point in the history
…uping

(cherry picked from commit 5e45e2b)
  • Loading branch information
krantheman authored and mergify[bot] committed Sep 13, 2024
1 parent a16573e commit 00e57e1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ def get_employee_related_details(filters: Filters) -> tuple[dict, list]:
emp_map = {}

if group_by:
group_key = lambda d: d[group_by] # noqa
group_key = lambda d: "" if d[group_by] is None else d[group_by] # noqa
for parameter, employees in groupby(sorted(employee_details, key=group_key), key=group_key):
group_by_param_values.append(parameter)
emp_map.setdefault(parameter, frappe._dict())
Expand Down

0 comments on commit 00e57e1

Please sign in to comment.