From 9cd33ddac3d6848c5443962d66494635feadef51 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Mon, 9 Sep 2024 14:06:31 -0500 Subject: Initialise samples uploads * Move existing code to new module * Rework the UI: create new templates * Rework the routes: Select species and populations before attempting an upload. --- uploader/population/views.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'uploader/population') diff --git a/uploader/population/views.py b/uploader/population/views.py index 5be19ae..003787a 100644 --- a/uploader/population/views.py +++ b/uploader/population/views.py @@ -13,6 +13,7 @@ from flask import (flash, from uploader.ui import make_template_renderer from uploader.authorisation import require_login from uploader.db_utils import database_connection +from uploader.samples.views import samplesbp from uploader.species.models import (all_species, species_by_id, order_species_by_family) @@ -25,6 +26,7 @@ from .models import (save_population, __active_link__ = "populations" popbp = Blueprint("populations", __name__) +popbp.register_blueprint(samplesbp, url_prefix="/") render_template = make_template_renderer("populations") -- cgit v1.2.3