mirror of
https://github.com/donnemartin/system-design-primer.git
synced 2025-09-17 17:40:38 +03:00
Used the correct property names for a call object
Used 'rank' instead of 'level' to maintain uniformity with other portions of the code
This commit is contained in:
@@ -110,7 +110,7 @@
|
||||
" super(Operator, self).__init__(employee_id, name, Rank.OPERATOR)\n",
|
||||
"\n",
|
||||
" def escalate_call(self):\n",
|
||||
" self.call.level = Rank.SUPERVISOR\n",
|
||||
" self.call.rank = Rank.SUPERVISOR\n",
|
||||
" self._escalate_call()\n",
|
||||
"\n",
|
||||
"\n",
|
||||
@@ -120,7 +120,7 @@
|
||||
" super(Operator, self).__init__(employee_id, name, Rank.SUPERVISOR)\n",
|
||||
"\n",
|
||||
" def escalate_call(self):\n",
|
||||
" self.call.level = Rank.DIRECTOR\n",
|
||||
" self.call.rank = Rank.DIRECTOR\n",
|
||||
" self._escalate_call()\n",
|
||||
"\n",
|
||||
"\n",
|
||||
|
Reference in New Issue
Block a user