From 47f6f23c976cd72f3181d003f64740902341f51d Mon Sep 17 00:00:00 2001 From: BonfaceKilz Date: Thu, 22 Jul 2021 22:07:21 +0300 Subject: wqflask: views: Edit end-point to use the phenotype-id squash! wqflask: views: Edit end-point to use the phenotype-id --- wqflask/wqflask/views.py | 8 ++++---- 1 file 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//edit/inbredset-id/") +@app.route("/trait//edit/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"]) -- cgit v1.2.3