Skip to content

Commit

Permalink
Bundle params fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alekseyl1992 committed Sep 23, 2017
1 parent 4728214 commit b19a002
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion aiohttp_swagger/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,12 @@ def setup_swagger(app: web.Application,
# --------------------------------------------------------------------------
app["SWAGGER_DEF_CONTENT"] = swagger_info
with open(join(STATIC_PATH, "index.html"), "r") as f:
bundle_params_str = json.dumps(bundle_params or {})
app["SWAGGER_TEMPLATE_CONTENT"] = (
f.read()
.replace("##SWAGGER_CONFIG##", _swagger_def_url)
.replace("##STATIC_PATH##", statics_path)
.replace("##BUNDLE_PARAMS##", bundle_params or [])
.replace("##BUNDLE_PARAMS##", bundle_params_str)
)


Expand Down

0 comments on commit b19a002

Please sign in to comment.