Parse a list of files and return their record IDs.
(paths: list)
| 68 | |
| 69 | |
| 70 | def batch_parse(paths: list) -> list: |
| 71 | """Parse a list of files and return their record IDs.""" |
| 72 | results = [] |
| 73 | for path in paths: |
| 74 | try: |
| 75 | rid = parse_and_save(path) |
| 76 | results.append({"path": path, "id": rid, "ok": True}) |
| 77 | except Exception as e: |
| 78 | results.append({"path": path, "error": str(e), "ok": False}) |
| 79 | return results |
no test coverage detected