about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2025-01-24 11:35:52 -0600
committerFrederick Muriuki Muriithi2025-01-24 11:36:08 -0600
commit8d495d539585ea95a4cbdb1c155c4932cbe215b9 (patch)
tree8cdc77501a1c43ba5b26741b7e6ff9d3fbdfc9ae
parentc28e30826fc02d036359a975ae5735918d4b69f7 (diff)
downloadgn-uploader-8d495d539585ea95a4cbdb1c155c4932cbe215b9.tar.gz
Extract reusable constant.
-rw-r--r--uploader/phenotypes/views.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/uploader/phenotypes/views.py b/uploader/phenotypes/views.py
index 8ecd305..5ae9588 100644
--- a/uploader/phenotypes/views.py
+++ b/uploader/phenotypes/views.py
@@ -50,6 +50,9 @@ from .models import (dataset_by_id,
 phenotypesbp = Blueprint("phenotypes", __name__)
 render_template = make_template_renderer("phenotypes")
 
+_FAMILIES_WITH_SE_AND_N_ = (
+    "Reference Populations (replicate average, SE, N)",)
+
 @phenotypesbp.route("/phenotypes", methods=["GET"])
 @require_login
 def index():
@@ -422,8 +425,7 @@ def add_phenotypes(species: dict, population: dict, dataset: dict, **kwargs):# p
                     "December"),
                 current_month=today.strftime("%B"),
                 current_year=int(today.strftime("%Y")),
-                families_with_se_and_n=(
-                    "Reference Populations (replicate average, SE, N)",),
+                families_with_se_and_n=_FAMILIES_WITH_SE_AND_N_,
                 use_bundle=use_bundle,
                 activelink="add-phenotypes")