Skip to content

Commit

Permalink
Remove description from parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
omar2535 committed Sep 30, 2023
1 parent ac4e0e8 commit 8e3af65
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,13 @@ __pycache__/
.env/
env/
.venv/
omar-test/

# VScode
.vscode/settings.json

# Testing
.coverage

## Omar's personal testing
omar-test/
anilist-test/
3 changes: 0 additions & 3 deletions compiler/parsers/query_list_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ def __extract_arg_info(self, field):
for arg in field:
arg_info = {
"name": arg["name"],
"description": arg["description"],
"type": arg["type"]["name"] if "name" in arg["type"] else None,
"ofType": self.__extract_oftype(arg),
}
Expand Down Expand Up @@ -60,7 +59,6 @@ def parse(self, introspection_data: dict) -> List[dict]:
query_info_dict = {}
for query in queries:
query_name = query["name"]
query_description = query["description"] if "description" in query else ""
query_args = self.__extract_arg_info(query["args"])
return_type = {
"kind": query["type"]["kind"],
Expand All @@ -70,7 +68,6 @@ def parse(self, introspection_data: dict) -> List[dict]:

query_info_dict[query_name] = {
"name": query_name,
"description": query_description,
"inputs": query_args,
"outputs": return_type,
}
Expand Down

0 comments on commit 8e3af65

Please sign in to comment.