fix variables key in body (#1050)

This commit is contained in:
Roberto Barreda 2020-10-26 10:09:49 +01:00 committed by GitHub
parent 8928ec2dbe
commit 8408c51bf9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,7 +45,7 @@ def graphql_query(
if variables: if variables:
body["variables"] = variables body["variables"] = variables
if input_data: if input_data:
if variables in body: if "variables" in body:
body["variables"]["input"] = input_data body["variables"]["input"] = input_data
else: else:
body["variables"] = {"input": input_data} body["variables"] = {"input": input_data}