meal master tweak and frontend build

This commit is contained in:
vabene1111
2021-09-14 14:48:50 +02:00
parent 1c661c9baf
commit 0e50e4e8a0
12 changed files with 11 additions and 13 deletions

View File

@ -8,12 +8,10 @@ from cookbook.models import Recipe, Step, Ingredient, Keyword
class MealMaster(Integration):
def get_recipe_from_file(self, file):
print('------------ getting recipe')
servings = 1
ingredients = []
directions = []
for line in file.replace('\r', '').split('\n'):
print('testing line')
if not line.startswith('MMMMM') and line.strip != '':
if 'Title:' in line:
title = line.replace('Title:', '').strip()