aboutsummaryrefslogtreecommitdiff
path: root/gn2/wqflask
diff options
context:
space:
mode:
authorMunyoki Kilyungi2024-02-23 13:43:41 +0300
committerBonfaceKilz2024-03-26 10:01:13 +0300
commit75e5502814d94ed459c331c1a8bfaf4d62eff3e0 (patch)
tree271841e6ef1597714bdd25c49bf44921cac53070 /gn2/wqflask
parentfd08c70f0e0e736d074241e2266d1762217fc4be (diff)
downloadgenenetwork2-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/wqflask')
-rw-r--r--gn2/wqflask/edit.py2
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(