Skip to content

Commit e984b37

Browse files
author
github-actions
committed
tagify filename
1 parent 28e1b6e commit e984b37

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

bbot/modules/graphql_introspection.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -128,12 +128,8 @@ async def handle_event(self, event):
128128
self.debug(f"Failed to parse JSON for {url}")
129129
continue
130130
if response_json.get("data", {}).get("__schema", {}).get("types", []):
131-
schema_output_dir = self.helpers.tagify(url)
132-
schema_output_dir = self.output_dir / schema_output_dir
133-
self.helpers.mkdir(schema_output_dir)
134-
135-
filename = "schema.json"
136-
filename = schema_output_dir / filename
131+
filename = f"schema-{self.helpers.tagify(url)}.json"
132+
filename = self.output_dir / filename
137133
with open(filename, "w") as f:
138134
json.dump(response_json, f)
139135
await self.emit_event(

0 commit comments

Comments
 (0)