File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed
Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change 11import os
22import sys
33
4- __version__ = "4.4.2dev8 "
4+ __version__ = "4.4.2dev9 "
55
66sys .path .append (os .path .split (os .path .realpath (__file__ ))[0 ])
77
Original file line number Diff line number Diff line change @@ -1376,7 +1376,6 @@ async def upload_annotations(
13761376 ) -> UploadAnnotationsResponse :
13771377 url = urljoin (
13781378 self .assets_provider_url ,
1379- # "https://0ef1-178-160-196-42.ngrok.io/api/v1.01/",
13801379 (
13811380 f"{ self .URL_UPLOAD_ANNOTATIONS } ?{ '&' .join (f'image_names[]={ item_name } ' for item_name in items_name_file_map .keys ())} "
13821381 ),
@@ -1387,8 +1386,7 @@ async def upload_annotations(
13871386 async with aiohttp .ClientSession (
13881387 headers = headers , connector = aiohttp .TCPConnector (ssl = self ._verify_ssl )
13891388 ) as session :
1390- data = aiohttp .FormData ()
1391-
1389+ data = aiohttp .FormData (quote_fields = False )
13921390 for key , file in items_name_file_map .items ():
13931391 file .seek (0 )
13941392 data .add_field (
@@ -1397,7 +1395,6 @@ async def upload_annotations(
13971395 filename = key ,
13981396 content_type = "application/json" ,
13991397 )
1400-
14011398 _response = await session .post (
14021399 url ,
14031400 params = {
You can’t perform that action at this time.
0 commit comments