🎨 reformat using black
This commit is contained in:
parent
a1ab4c0b5a
commit
1994109507
5 changed files with 70 additions and 53 deletions
|
@ -67,12 +67,11 @@ def fetch_recipes(keyword_id):
|
|||
|
||||
return recipes
|
||||
|
||||
|
||||
def fetch_recipe(recipe_id):
|
||||
endpoint = "/api/recipe"
|
||||
|
||||
response = requests.get(
|
||||
f"{TANDOOR_URL}/api/recipe/{recipe_id}", headers=headers
|
||||
)
|
||||
response = requests.get(f"{TANDOOR_URL}/api/recipe/{recipe_id}", headers=headers)
|
||||
|
||||
if response.status_code != 200:
|
||||
print(f"Error: Received status code {response.status_code}")
|
||||
|
@ -81,6 +80,7 @@ def fetch_recipe(recipe_id):
|
|||
recipe = response.json()
|
||||
return recipe
|
||||
|
||||
|
||||
def main():
|
||||
keyword_id = fetch_keyword_id(TANDOOR_KEYWORD)
|
||||
recipes = fetch_recipes(keyword_id)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue