🚧 tqdm
This commit is contained in:
parent
f9bc468a56
commit
9856062227
4 changed files with 8 additions and 6 deletions
|
@ -5,10 +5,12 @@ from datetime import timedelta
|
|||
import re
|
||||
from pathvalidate import validate_filename
|
||||
import os
|
||||
from tqdm import tqdm
|
||||
|
||||
include_title = False
|
||||
output_dir = "recipes-md"
|
||||
|
||||
|
||||
def valid_duration(duration):
|
||||
if not duration:
|
||||
return False
|
||||
|
@ -105,7 +107,7 @@ def main(json_file):
|
|||
print("No Recipe object found in JSON.")
|
||||
return
|
||||
|
||||
for recipe in recipes:
|
||||
for recipe in tqdm(recipes):
|
||||
markdown_fn = f"{recipe.get('name', 'Untitled Recipe')}.md"
|
||||
validate_filename(markdown_fn) # XXX does this check directory traversal?
|
||||
markdown = format_recipe_to_markdown(recipe)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue