From 8d495d539585ea95a4cbdb1c155c4932cbe215b9 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Fri, 24 Jan 2025 11:35:52 -0600 Subject: Extract reusable constant. --- uploader/phenotypes/views.py | 6 ++++-- 1 file 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") -- cgit v1.2.3