Forráskód Böngészése

Merge pull request #1036 from icecraft/fix/remove_test_code

Xiaomeng Zhao 1 éve
szülő
commit
3b9b95c3f2
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      magic_pdf/data/read_api.py

+ 1 - 1
magic_pdf/data/read_api.py

@@ -35,7 +35,7 @@ def read_jsonl(
     jsonl_d = [
         json.loads(line) for line in jsonl_bits.decode().split('\n') if line.strip()
     ]
-    for d in jsonl_d[:5]:
+    for d in jsonl_d:
         pdf_path = d.get('file_location', '') or d.get('path', '')
         if len(pdf_path) == 0:
             raise EmptyData('pdf file location is empty')