Skip to content

Commit 0ae8e10

Browse files
committed
query.import_rows: add timeout param
This resolves LabKey/internal-issues#1195
1 parent d3dd2d6 commit 0ae8e10

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

labkey/query.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ def import_rows(
376376
insert_option: str = None,
377377
audit_behavior: str = None,
378378
import_lookup_by_alternate_key: bool = False,
379-
timeout: int = _default_timeout
379+
timeout: int = _default_timeout,
380380
):
381381
"""
382382
Import row(s) into a table
@@ -416,7 +416,9 @@ def import_rows(
416416
if import_lookup_by_alternate_key is not None:
417417
payload["importLookupByAlternateKey"] = import_lookup_by_alternate_key
418418

419-
return server_context.make_request(url, payload, method="POST", file_payload=file_payload, timeout=timeout)
419+
return server_context.make_request(
420+
url, payload, method="POST", file_payload=file_payload, timeout=timeout
421+
)
420422

421423

422424
class Command(TypedDict):
@@ -860,6 +862,7 @@ def import_rows(
860862
insert_option: str = None,
861863
audit_behavior: str = None,
862864
import_lookup_by_alternate_key: bool = False,
865+
timeout: int = _default_timeout,
863866
):
864867
return import_rows(
865868
self.server_context,
@@ -870,6 +873,7 @@ def import_rows(
870873
insert_option,
871874
audit_behavior,
872875
import_lookup_by_alternate_key,
876+
timeout,
873877
)
874878

875879
@functools.wraps(save_rows)

0 commit comments

Comments
 (0)