diff options
author | Munyoki Kilyungi | 2024-02-23 13:43:41 +0300 |
---|---|---|
committer | BonfaceKilz | 2024-03-26 10:01:13 +0300 |
commit | 75e5502814d94ed459c331c1a8bfaf4d62eff3e0 (patch) | |
tree | 271841e6ef1597714bdd25c49bf44921cac53070 /gn2 | |
parent | fd08c70f0e0e736d074241e2266d1762217fc4be (diff) | |
download | genenetwork2-75e5502814d94ed459c331c1a8bfaf4d62eff3e0.tar.gz |
Make GN3_LOCAL_URL local to avoid circular imports.
* gn2/wqflask/edit.py: Move GN3_LOCAL_URL ...
(metadata_edit): ... here.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'gn2')
-rw-r--r-- | gn2/wqflask/edit.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gn2/wqflask/edit.py b/gn2/wqflask/edit.py index 61b1ee61..cf38084d 100644 --- a/gn2/wqflask/edit.py +++ b/gn2/wqflask/edit.py @@ -12,7 +12,6 @@ from flask import (Blueprint, request) from gn2.wqflask.decorators import login_required -from gn2.utility.tools import GN3_LOCAL_URL metadata = Blueprint("metadata", __name__) @@ -50,6 +49,7 @@ def save_dataset_metadata( @metadata.route("/edit") @login_required(pagename="Dataset Metadata Editing") def metadata_edit(): + from gn2.utility.tools import GN3_LOCAL_URL match request.args.get("type"): case "dcat:Dataset": metadata = requests.get( |