Skip to content

Commit

Permalink
v2.5.14 beta
Browse files Browse the repository at this point in the history
  • Loading branch information
Ludy87 committed Feb 4, 2023
1 parent ee28c42 commit 9f3db63
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/pyxplora_api/const.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION = "2.5.13"
VERSION = "2.5.14"
VERSION_APP = "1286"
API_KEY = "fc45d50304511edbf67a12b93c413b6a"
API_SECRET = "1e9b6fe0327711ed959359c157878dcb"
Expand Down
11 changes: 8 additions & 3 deletions src/pyxplora_api/gql_handler_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,14 @@ async def runGqlQuery_a(
# create GQLClient
gqlClient = GraphqlClient(endpoint=ENDPOINT, headers=requestHeaders)
# execute QUERY|MUTATION
data: dict[str, Any] = await gqlClient.ha_execute_async(
query=query, variables=variables, operation_name=operation_name, session=self._session
)
if self._session:
data: dict[str, Any] = await gqlClient.ha_execute_async(
query=query, variables=variables, operation_name=operation_name, session=self._session
)
else:
data: dict[str, Any] = await gqlClient.execute_async(
query=query, variables=variables, operation_name=operation_name
)
return data

async def runAuthorizedGqlQuery_a(
Expand Down

0 comments on commit 9f3db63

Please sign in to comment.