-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhelper.py
16 lines (14 loc) · 833 Bytes
/
helper.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
def get_diet_index(user_diet):
dietary_preferences = ['Diabetic Friendly', 'Vegetarian', 'Eggetarian', 'Vegan',
'High Protein Vegetarian', 'No Onion No Garlic (Sattvic)',
'Non Vegeterian', 'High Protein Non Vegetarian', 'Gluten Free',
'Sugar Free Diet']
return dietary_preferences.index(user_diet)
def get_course_index(user_course):
type_of_course = ['Side Dish', 'Main Course', 'Snack', 'Lunch', 'Appetizer', 'Dessert',
'Dinner', 'World Breakfast']
return type_of_course.index(user_course)
def get_cuisine_index(user_cuisine):
cuisine_options = ['Indian', 'South Indian Recipes', 'North Indian Recipes',
'Italian Recipes', 'Continental']
return cuisine_options.index(user_cuisine)