mirror of
				https://github.com/donnemartin/system-design-primer.git
				synced 2025-11-04 02:02:31 +03:00 
			
		
		
		
	Update call_center.py
This commit is contained in:
		@@ -94,7 +94,7 @@ class CallCenter(object):
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    def dispatch_call(self, call):
 | 
					    def dispatch_call(self, call):
 | 
				
			||||||
        if call.rank not in (Rank.OPERATOR, Rank.SUPERVISOR, Rank.DIRECTOR):
 | 
					        if call.rank not in (Rank.OPERATOR, Rank.SUPERVISOR, Rank.DIRECTOR):
 | 
				
			||||||
            raise ValueError('Invalid call rank: {}'.format(call.rank))
 | 
					            raise ValueError(f'Invalid call rank: {call.rank}')
 | 
				
			||||||
        employee = None
 | 
					        employee = None
 | 
				
			||||||
        if call.rank == Rank.OPERATOR:
 | 
					        if call.rank == Rank.OPERATOR:
 | 
				
			||||||
            employee = self._dispatch_call(call, self.operators)
 | 
					            employee = self._dispatch_call(call, self.operators)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user