From 485bfc2adb29d176d2aeac18f0ec5d67d2bf6cd2 Mon Sep 17 00:00:00 2001 From: Mostafa Negim <49144892+monegim@users.noreply.github.com> Date: Thu, 21 Jul 2022 21:31:53 +0430 Subject: [PATCH] Update super function argument Change first parameters in in Supervisor and Director subclasses --- solutions/object_oriented_design/call_center/call_center.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/solutions/object_oriented_design/call_center/call_center.py b/solutions/object_oriented_design/call_center/call_center.py index 1d5e7bc6..bf631ad4 100644 --- a/solutions/object_oriented_design/call_center/call_center.py +++ b/solutions/object_oriented_design/call_center/call_center.py @@ -53,7 +53,7 @@ class Operator(Employee): class Supervisor(Employee): def __init__(self, employee_id, name): - super(Operator, self).__init__(employee_id, name, Rank.SUPERVISOR) + super(Supervisor, self).__init__(employee_id, name, Rank.SUPERVISOR) def escalate_call(self): self.call.level = Rank.DIRECTOR @@ -63,7 +63,7 @@ class Supervisor(Employee): class Director(Employee): def __init__(self, employee_id, name): - super(Operator, self).__init__(employee_id, name, Rank.DIRECTOR) + super(Director, self).__init__(employee_id, name, Rank.DIRECTOR) def escalate_call(self): raise NotImplementedError('Directors must be able to handle any call')