diff options
author | BonfaceKilz | 2021-08-16 18:54:16 +0300 |
---|---|---|
committer | BonfaceKilz | 2021-08-16 18:54:16 +0300 |
commit | 923d849d640e3048422e3cdfa6ce24716cfa7904 (patch) | |
tree | 9bbf661cdf207092c1b004f58161d61d192e1e8b /wqflask | |
parent | 2071107566d89a12fe27fdcc94dd16b7b8680f83 (diff) | |
download | genenetwork2-923d849d640e3048422e3cdfa6ce24716cfa7904.tar.gz |
wqflask: views: Use "inbredset_id" in the "Edit Trait" URL
Diffstat (limited to 'wqflask')
-rw-r--r-- | wqflask/wqflask/views.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/wqflask/wqflask/views.py b/wqflask/wqflask/views.py index 08e895cb..3f0ab93f 100644 --- a/wqflask/wqflask/views.py +++ b/wqflask/wqflask/views.py @@ -408,9 +408,9 @@ def submit_trait_form(): version=GN_VERSION) -@app.route("/trait/<name>/edit/phenotype-id/<phenotype_id>") +@app.route("/trait/<name>/edit/inbredset-id/<inbredset_id>") @admin_login_required -def edit_phenotype(name, phenotype_id): +def edit_phenotype(name, inbredset_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"), @@ -419,7 +419,7 @@ def edit_phenotype(name, phenotype_id): conn=conn, table="PublishXRef", where=PublishXRef(id_=name, - phenotype_id=phenotype_id)) + inbred_set_id=inbredset_id)) phenotype_ = fetchone( conn=conn, table="Phenotype", |