Skip to content

Commit 330a59f

Browse files
committed
Removed unused data
1 parent 6a99238 commit 330a59f

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

flask_graphql/graphqlview.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def dispatch_request(self):
107107

108108
responses = [self.get_response(
109109
self.schema,
110-
entry,
110+
self.get_graphql_params(entry),
111111
catch,
112112
only_allow_query,
113113
root_value=self.get_root_value(request),
@@ -147,12 +147,10 @@ def dispatch_request(self):
147147
content_type='application/json'
148148
)
149149

150-
def get_response(self, schema, data, catch=None, only_allow_query=False, **kwargs):
151-
params = self.get_graphql_params(data)
150+
def get_response(self, schema, params, catch=None, only_allow_query=False, **kwargs):
152151
try:
153152
execution_result = self.execute_graphql_request(
154153
schema,
155-
data,
156154
params,
157155
only_allow_query,
158156
**kwargs
@@ -216,7 +214,7 @@ def parse_body(self):
216214
return {}
217215

218216
@staticmethod
219-
def execute_graphql_request(schema, data, params, only_allow_query=False, **kwargs):
217+
def execute_graphql_request(schema, params, only_allow_query=False, **kwargs):
220218
if not params.query:
221219
raise HttpQueryError(400, 'Must provide query string.')
222220

0 commit comments

Comments
 (0)