From f0a6b08800971adecc1ccd87dbe4268bc31b0452 Mon Sep 17 00:00:00 2001 From: Abdelrahman Naser Date: Mon, 12 Jul 2021 07:28:37 +0200 Subject: [PATCH] Update call_center.ipynb Add missing argument in constructors --- .../call_center/call_center.ipynb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/solutions/object_oriented_design/call_center/call_center.ipynb b/solutions/object_oriented_design/call_center/call_center.ipynb index 33272905..8978e19c 100644 --- a/solutions/object_oriented_design/call_center/call_center.ipynb +++ b/solutions/object_oriented_design/call_center/call_center.ipynb @@ -106,8 +106,8 @@ "\n", "class Operator(Employee):\n", "\n", - " def __init__(self, employee_id, name):\n", - " super(Operator, self).__init__(employee_id, name, Rank.OPERATOR)\n", + " def __init__(self, employee_id, name, call_center):\n", + " super(Operator, self).__init__(employee_id, name, Rank.OPERATOR, call_center)\n", "\n", " def escalate_call(self):\n", " self.call.rank = Rank.SUPERVISOR\n", @@ -116,8 +116,8 @@ "\n", "class Supervisor(Employee):\n", "\n", - " def __init__(self, employee_id, name):\n", - " super(Operator, self).__init__(employee_id, name, Rank.SUPERVISOR)\n", + " def __init__(self, employee_id, name, call_center):\n", + " super(Operator, self).__init__(employee_id, name, Rank.SUPERVISOR, call_center)\n", "\n", " def escalate_call(self):\n", " self.call.rank = Rank.DIRECTOR\n", @@ -126,8 +126,8 @@ "\n", "class Director(Employee):\n", "\n", - " def __init__(self, employee_id, name):\n", - " super(Operator, self).__init__(employee_id, name, Rank.DIRECTOR)\n", + " def __init__(self, employee_id, name, call_center):\n", + " super(Operator, self).__init__(employee_id, name, Rank.DIRECTOR, call_center)\n", "\n", " def escalate_call(self):\n", " raise NotImplemented('Directors must be able to handle any call')\n",