From b5c08e5871448c4ac51c60ebb6e0f5f4c7eb1a19 Mon Sep 17 00:00:00 2001 From: Sara Kowalska Date: Mon, 18 May 2020 13:57:12 +0200 Subject: [PATCH] Poprawa konstruktora klasy Plate --- .idea/DSZI.iml | 2 +- .idea/misc.xml | 2 +- Restaurant/main.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.idea/DSZI.iml b/.idea/DSZI.iml index bb9849c..0267347 100644 --- a/.idea/DSZI.iml +++ b/.idea/DSZI.iml @@ -5,7 +5,7 @@ - + diff --git a/.idea/misc.xml b/.idea/misc.xml index 4f2d1fe..a2e120d 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,4 +1,4 @@ - + \ No newline at end of file diff --git a/Restaurant/main.py b/Restaurant/main.py index 3b8865c..eb9eb6e 100644 --- a/Restaurant/main.py +++ b/Restaurant/main.py @@ -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