Poprawa konstruktora klasy Plate
This commit is contained in:
parent
40350155c0
commit
b5c08e5871
@ -5,7 +5,7 @@
|
||||
<excludeFolder url="file://$MODULE_DIR$/Restaurant/Marta/venv" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/venv" />
|
||||
</content>
|
||||
<orderEntry type="jdk" jdkName="Python 3.7 (Restaurant)" jdkType="Python SDK" />
|
||||
<orderEntry type="jdk" jdkName="Python 3.7" jdkType="Python SDK" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
<component name="TestRunnerService">
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.7 (Restaurant)" project-jdk-type="Python SDK" />
|
||||
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.7" project-jdk-type="Python SDK" />
|
||||
</project>
|
@ -130,7 +130,7 @@ class Dish(object):
|
||||
|
||||
|
||||
class Plate(object):
|
||||
def __init__(self, dish, img):
|
||||
def __init__(self, dish, img=None):
|
||||
self.dishName = dish.dishName
|
||||
self.isEmpty = False
|
||||
self.preparationTime = dish.preparationTime
|
||||
|
Loading…
Reference in New Issue
Block a user