From 6e92bb778fc7a759d517f93cdde0d448a7007fd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Kucmus?= Date: Wed, 15 Sep 2021 20:13:22 +0200 Subject: [PATCH 1/2] add the option to specify a filename on AIOHTTPTransport multipart upload --- gql/transport/aiohttp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gql/transport/aiohttp.py b/gql/transport/aiohttp.py index 84679365..04c85edf 100644 --- a/gql/transport/aiohttp.py +++ b/gql/transport/aiohttp.py @@ -185,7 +185,7 @@ async def execute( # Add the extracted files as remaining fields for k, v in file_streams.items(): - data.add_field(k, v, filename=k) + data.add_field(k, v, filename=getattr(v, "name", k)) post_args: Dict[str, Any] = {"data": data} From 0cc4e7b2f63ca4c3843ae8f53666ae64b2364e84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Kucmus?= Date: Wed, 15 Sep 2021 20:14:01 +0200 Subject: [PATCH 2/2] fix a broken pip command reference in CONTRIBUTING.md --- CONTRIBUTING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index e4df615a..70750f8e 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -31,7 +31,7 @@ virtualenv gql-dev Activate the virtualenv and install dependencies by running: ```console -python pip install -e.[dev] +python -m pip install -e.[dev] ``` If you are using Linux or MacOS, you can make use of Makefile command