Skip to content

Commit 264e04e

Browse files
committed
update et test
1 parent 3952e1b commit 264e04e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ lib/
88
bin/
99
pyvenv.cfg
1010
config.yml
11+
config.yml

src/import_ind.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
sesame_api_baseurl = os.getenv('SESAME_API_BASEURL')
1111
sesame_api_token = os.getenv('SESAME_API_TOKEN')
1212
sesame_import_parallels_files = int(os.getenv('SESAME_IMPORT_PARALLELS_FILES', 1))
13-
sesame_import_parallels_entries = int(os.getenv('SESAME_IMPORT_PARALLELS_ENTRIES', 5))
13+
sesame_import_parallels_entries = int(os.getenv('SESAME_IMPORT_PARALLELS_ENTRIES', 1))
1414

1515
async def gather_with_concurrency(n, tasks):
1616
semaphore = asyncio.Semaphore(n)
@@ -40,7 +40,8 @@ async def send_request(session, url, json, primaryKey):
4040

4141

4242
try:
43-
43+
if params is not None:
44+
params = {k: v for k, v in params.items() if v is not None}
4445
async with session.post(url, json=json, headers=headers, params=params) as response:
4546
print(f"Request to {url} successful: {response.status}")
4647
if response.status == 304:

0 commit comments

Comments
 (0)