Skip to content

Commit

Permalink
Better use of default
Browse files Browse the repository at this point in the history
  • Loading branch information
smallwat3r committed Nov 26, 2023
1 parent fb0ad9b commit ae8ac66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shhh/api/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class ReadResponse(CallableResponse):


def _build_link_url(external_id: str) -> str:
root_host = app.config.get("SHHH_HOST") or request.url_root
root_host = app.config.get("SHHH_HOST", request.url_root)
return urljoin(root_host, url_for("web.read", external_id=external_id))


Expand Down

0 comments on commit ae8ac66

Please sign in to comment.