Skip to content

Commit

Permalink
fix WA code gen
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisSzeto committed Oct 4, 2024
1 parent 87a0556 commit 27b7938
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,8 @@ def _render_section_docs(i, h3, type_json_url, write=False):
_render_section_docs_by_language(i, h3, type_json_url, lang, write)

def _render_section_docs_by_language(i, h3, type_json_url, language, write=False):
content = json.loads(urlopen(LEAN_SERVICE % (language, type_json_url)).read())
url = LEAN_SERVICE % (language, type_json_url)
content = json.loads(urlopen(url.replace(" ", "%20")).read())

# Not a type, do not render
if "type-name" not in content:
Expand Down

0 comments on commit 27b7938

Please sign in to comment.