Atualizar src-py/renatoxsr/scripts/bulk_jsonl.py
This commit is contained in:
@@ -34,7 +34,7 @@ def main():
|
|||||||
with open(Path(parsed_args.outdir) / parsed_args.outfile, "w" if parsed_args.overwrite else "a") as output_file:
|
with open(Path(parsed_args.outdir) / parsed_args.outfile, "w" if parsed_args.overwrite else "a") as output_file:
|
||||||
for file in process_files:
|
for file in process_files:
|
||||||
fpath = Path(file)
|
fpath = Path(file)
|
||||||
data = {"hash": hash_b58(fpath), "fpath": str(fpath), "markdown": pandoc(fpath)}
|
data = {"hash": hash_b58(fpath), "fpath": str(fpath), "markdown": pandoc(fpath, to="markdown")}
|
||||||
if not data["markdown"]:
|
if not data["markdown"]:
|
||||||
logger.error("No markdown output from '%s' (hash:%s)", fpath, data["hash"])
|
logger.error("No markdown output from '%s' (hash:%s)", fpath, data["hash"])
|
||||||
continue
|
continue
|
||||||
|
|||||||
Reference in New Issue
Block a user