Skip to content

Commit

Permalink
Merge pull request #133 from ch-cbna/feat/install_module
Browse files Browse the repository at this point in the history
Fix/install module
  • Loading branch information
jpm-cbna authored May 11, 2023
2 parents 2d04753 + d237c3e commit 63f4dbc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions backend/gn_module_export/blueprint.py
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ def get_one_export_api(id_export):
return data


if public_config["EXPORTS"]["expose_dsw_api"]:
if public_config.get("EXPORTS", False) and public_config["EXPORTS"]["expose_dsw_api"]:

@blueprint.route("/semantic_dsw", methods=["GET"])
def semantic_dsw():
Expand Down Expand Up @@ -597,5 +597,6 @@ def semantic_dsw():
return response

return send_from_directory(
os.path.dirname(export_dsw_fullpath), os.path.basename(export_dsw_fullpath)
os.path.dirname(export_dsw_fullpath),
os.path.basename(export_dsw_fullpath),
)

0 comments on commit 63f4dbc

Please sign in to comment.