auto-update
This commit is contained in:
parent
c2f49a8ea9
commit
2984f90499
2 changed files with 2 additions and 2 deletions
|
@ -149,7 +149,7 @@ def kill_remote_server(server):
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
load_env()
|
load_env()
|
||||||
db_config = load_config('db')
|
db_config = load_config('sys')
|
||||||
pool = db_config['POOL']
|
pool = db_config['POOL']
|
||||||
local_ts_id = os.environ.get('TS_ID')
|
local_ts_id = os.environ.get('TS_ID')
|
||||||
|
|
||||||
|
|
|
@ -644,7 +644,7 @@ async def extract_text(file: Union[UploadFile, bytes, bytearray, str, Path], bg_
|
||||||
|
|
||||||
try:
|
try:
|
||||||
if isinstance(file, UploadFile):
|
if isinstance(file, UploadFile):
|
||||||
info("File is an UploadFile object")
|
l.info("File is an UploadFile object")
|
||||||
file_extension = os.path.splitext(file.filename)[1]
|
file_extension = os.path.splitext(file.filename)[1]
|
||||||
temp_file_path = tempfile.mktemp(suffix=file_extension)
|
temp_file_path = tempfile.mktemp(suffix=file_extension)
|
||||||
with open(temp_file_path, 'wb') as buffer:
|
with open(temp_file_path, 'wb') as buffer:
|
||||||
|
|
Loading…
Add table
Reference in a new issue