Skip to content

Commit 756a990

Browse files
committed
Missed in last commit.
1 parent 7afdb90 commit 756a990

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

service_wrappers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from db import set_object
55

66

7-
def extract_image_text_and_set_db(file_path: str, key: str, field: str, options=None):
7+
def extract_image_text_and_set_db(file_path: str, key: str, field: str = 'content', options=None):
88
if options is None:
99
options = {
1010
"gray": True,
@@ -20,7 +20,7 @@ def extract_image_text_and_set_db(file_path: str, key: str, field: str, options=
2020
return False, content
2121

2222

23-
def extract_pdf_text_and_set_db(file_path: str, key: str, field: str):
23+
def extract_pdf_text_and_set_db(file_path: str, key: str, field: str = 'content'):
2424
is_success, content = extract_pdf_text_all(file_path)
2525
if is_success is True:
2626
set_object(key, field, content)

0 commit comments

Comments
 (0)