aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorBonfaceKilz2021-07-22 22:07:21 +0300
committerBonfaceKilz2021-08-03 15:49:50 +0300
commit47f6f23c976cd72f3181d003f64740902341f51d (patch)
tree5d1054f3e147c6f543794baedeec5e95ceeb4c0e /wqflask
parentb0514de0f73a9a6d756d7d5daa2a0641c5456ff2 (diff)
downloadgenenetwork2-47f6f23c976cd72f3181d003f64740902341f51d.tar.gz
wqflask: views: Edit end-point to use the phenotype-id
squash! wqflask: views: Edit end-point to use the phenotype-id
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/views.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/wqflask/wqflask/views.py b/wqflask/wqflask/views.py
index b97f15a4..7fd52ac9 100644
--- a/wqflask/wqflask/views.py
+++ b/wqflask/wqflask/views.py
@@ -433,9 +433,9 @@ def submit_trait_form():
version=GN_VERSION)
-@app.route("/trait/<name>/edit/inbredset-id/<inbred_set_id>")
+@app.route("/trait/<name>/edit/phenotype-id/<phenotype_id>")
@admin_login_required
-def edit_phenotype(name, inbred_set_id):
+def edit_phenotype(name, phenotype_id):
conn = MySQLdb.Connect(db=current_app.config.get("DB_NAME"),
user=current_app.config.get("DB_USER"),
passwd=current_app.config.get("DB_PASS"),
@@ -444,7 +444,7 @@ def edit_phenotype(name, inbred_set_id):
conn=conn,
table="PublishXRef",
where=PublishXRef(id_=name,
- inbred_set_id=inbred_set_id))
+ phenotype_id=phenotype_id))
phenotype_ = fetchone(
conn=conn,
table="Phenotype",
@@ -594,7 +594,7 @@ def update_phenotype():
editor=author.decode("utf-8"),
json_data=json.dumps(diff_data)))
return redirect(f"/trait/{data_.get('dataset-name')}"
- f"/edit/inbredset-id/{data_.get('inbred-set-id')}")
+ f"/edit/phenotype-id/{data_.get('phenotype-id')}")
@app.route("/probeset/update", methods=["POST"])