Skip to content

Commit

Permalink
Working on Style Check
Browse files Browse the repository at this point in the history
Co-authored-by: Aniya Smith <[email protected]>
  • Loading branch information
ajs20-williams committed Jun 28, 2024
1 parent c0fc99c commit d622cba
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
from dotenv import load_dotenv
from api_integration.edamam_integration import get_recipe
from api_integration.openai_integration import alt_recipe_query
from db.recipe_sql import create_tables, store_original_recipe, store_alt_recipe, lookup_prev_recipe, reset_database
from db.recipe_sql import (
create_tables, store_original_recipe,
store_alt_recipe, lookup_prev_recipe,
reset_database)

# Importing env variables for API authentication
load_dotenv()
Expand Down Expand Up @@ -49,7 +52,6 @@ def make_recipe():
for ingredient in recipe_query['ingredients']:
ingredients.append(ingredient)
recipe_link = recipe_query['url']

store_original_recipe(original_name, ingredients, recipe_link)

alt_recipe = alt_recipe_query(OPENAI_KEY, diet, recipe_query)
Expand All @@ -63,7 +65,6 @@ def make_recipe():
print(f"\nAlternative Recipe: {alt_name}\nIngredients: {', '.join(alt_ingredients)}\nInstructions: {alt_instructions}\n")



def lookup_original_recipe_id(name, ingredients, recipe_link):
ingredients_str = ', '.join(ingredients)

Expand Down

0 comments on commit d622cba

Please sign in to comment.