From c5477dbcff6215d5179dcf341bbb18a4cd27643f Mon Sep 17 00:00:00 2001 From: Julian Giesen Date: Wed, 14 Jan 2026 15:05:16 +0100 Subject: [PATCH 1/3] Adjusted process_solution to support hidden_actual_working_time in the visualization --- src/web/process_solution.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/web/process_solution.py b/src/web/process_solution.py index ca0cb42..7b0ab55 100644 --- a/src/web/process_solution.py +++ b/src/web/process_solution.py @@ -16,7 +16,7 @@ def employee_to_dict(emp: Employee): "id": emp.get_key(), "name": emp.name, "level": emp.level, - "target_working_time": emp.get_available_working_time(), + "target_working_time": emp.target_working_time, "wishes": { "shift_wishes": [[day, shift] for (day, shift) in emp.get_wish_shifts], "day_off_wishes": list(emp.get_wish_days), @@ -25,6 +25,7 @@ def employee_to_dict(emp: Employee): "forbidden_shifts": emp._forbidden_shifts, # type: ignore "vacation_days": emp.vacation_days, "vacation_shifts": emp.vacation_shifts, + "hidden_actual_working_time": emp._hidden_actual_working_time } From 11e8c93197fb77af725922cf2c9d40d282928cae Mon Sep 17 00:00:00 2001 From: Julian Giesen Date: Wed, 14 Jan 2026 15:08:09 +0100 Subject: [PATCH 2/3] Ran ruff check --fix --- src/web/process_solution.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/web/process_solution.py b/src/web/process_solution.py index 7b0ab55..6ed0ce0 100644 --- a/src/web/process_solution.py +++ b/src/web/process_solution.py @@ -25,7 +25,7 @@ def employee_to_dict(emp: Employee): "forbidden_shifts": emp._forbidden_shifts, # type: ignore "vacation_days": emp.vacation_days, "vacation_shifts": emp.vacation_shifts, - "hidden_actual_working_time": emp._hidden_actual_working_time + "hidden_actual_working_time": emp._hidden_actual_working_time } From 54d3387206ee4ecf5c5705a3af826681b654dd1a Mon Sep 17 00:00:00 2001 From: julian Date: Wed, 14 Jan 2026 15:52:30 +0100 Subject: [PATCH 3/3] Added #type:ignore --- src/web/process_solution.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/web/process_solution.py b/src/web/process_solution.py index 6ed0ce0..5eed6f3 100644 --- a/src/web/process_solution.py +++ b/src/web/process_solution.py @@ -25,7 +25,7 @@ def employee_to_dict(emp: Employee): "forbidden_shifts": emp._forbidden_shifts, # type: ignore "vacation_days": emp.vacation_days, "vacation_shifts": emp.vacation_shifts, - "hidden_actual_working_time": emp._hidden_actual_working_time + "hidden_actual_working_time": emp._hidden_actual_working_time, # type: ignore }