Adding missing self variable (#158)
This commit is contained in:
parent
a70a8f3a04
commit
4a7d2e4525
@ -64,7 +64,7 @@ class ParkingLot(object):
|
|||||||
self.levels = [] # List of Levels
|
self.levels = [] # List of Levels
|
||||||
|
|
||||||
def park_vehicle(self, vehicle):
|
def park_vehicle(self, vehicle):
|
||||||
for level in levels:
|
for level in self.levels:
|
||||||
if level.park_vehicle(vehicle):
|
if level.park_vehicle(vehicle):
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
Loading…
Reference in New Issue
Block a user