From e45383cb709b9d5f6eadee18872a6ee2f346e17d Mon Sep 17 00:00:00 2001 From: Jason Li Date: Mon, 5 May 2025 00:47:43 -0400 Subject: [PATCH 1/2] add environment variables to ci --- .github/workflows/api.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/api.yml b/.github/workflows/api.yml index 139ccd9..e0c38fe 100644 --- a/.github/workflows/api.yml +++ b/.github/workflows/api.yml @@ -11,6 +11,9 @@ jobs: defaults: run: working-directory: backend + env: + OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} + SERP_API_KEY: ${{ secrets.SERP_API_KEY }} steps: - uses: actions/checkout@v3 From 58c3221a57533991cf3575e84383cdf53cfd545c Mon Sep 17 00:00:00 2001 From: Jason Li Date: Mon, 5 May 2025 00:49:03 -0400 Subject: [PATCH 2/2] test ci --- backend/app/core/ocr.py | 1 - 1 file changed, 1 deletion(-) diff --git a/backend/app/core/ocr.py b/backend/app/core/ocr.py index 63f47fb..55dad96 100644 --- a/backend/app/core/ocr.py +++ b/backend/app/core/ocr.py @@ -232,7 +232,6 @@ def clean_menu_items(lines: list[str]) -> list[str]: current_dish = line dishes.append(current_dish) elif current_dish and i > 0: - # This might be a dish description, add to the current dish if current_dish in dish_descriptions: dish_descriptions[current_dish] += " " + line else: