19 lines
486 B
Python
19 lines
486 B
Python
def diet_restriction(meals,client):
|
|
flag = True
|
|
print(client.restrykcje_dietowe)
|
|
|
|
for meal in meals:
|
|
vegan,vegetarian,meat = meal.vegan_vegetarian_meat
|
|
print(meal)
|
|
if not vegan and client.restrykcje_dietowe == 'Vegan':
|
|
print("tu")
|
|
|
|
flag = False
|
|
elif client.restrykcje_dietowe == 'Vegetarian' and meat:
|
|
print("tu2")
|
|
flag = False
|
|
|
|
print("----------------------------------")
|
|
return flag
|
|
|