Explorar o código

Merge pull request #5 from karlosmid/master

changed wrong logic for checking busy attribute
Sakis Kasampalis %!s(int64=13) %!d(string=hai) anos
pai
achega
e2d26095c8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      proxy.py

+ 1 - 1
proxy.py

@@ -14,7 +14,7 @@ class Proxy:
 
     def work (self):                         
         print("Proxy checking for Sales Manager availability")                         
-        if self.busy == 'Yes':                                      
+        if self.busy == 'No':                                      
             self.sales = SalesManager()                                      
             time.sleep(2);                                      
             self.sales.talk()