From c9e0f40e883e4b467eb12b9a4b5f792c2635d97b Mon Sep 17 00:00:00 2001 From: vabene1111 Date: Mon, 26 Feb 2024 16:29:04 +0100 Subject: [PATCH] fixed mealmaster regex --- cookbook/integration/mealmaster.py | 2 +- requirements.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cookbook/integration/mealmaster.py b/cookbook/integration/mealmaster.py index 9dce4fdd..786103b4 100644 --- a/cookbook/integration/mealmaster.py +++ b/cookbook/integration/mealmaster.py @@ -22,7 +22,7 @@ class MealMaster(Integration): if 'Yield:' in line: servings_text = line.replace('Yield:', '').strip() else: - if re.match('\s{2,}([0-9])+', line): + if re.match(r'\s{2,}([0-9])+', line): ingredients.append(line.strip()) else: directions.append(line.strip()) diff --git a/requirements.txt b/requirements.txt index f27f16c9..c416671b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -15,7 +15,7 @@ gunicorn==20.1.0 lxml==4.9.3 Markdown==3.5.1 Pillow==10.2.0 -psycopg2-binary==2.9.5 +psycopg2-binary==2.9.9 python-dotenv==1.0.0 requests==2.31.0 six==1.16.0