aboutsummaryrefslogtreecommitdiff
path: root/uploader/population
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-09-09 14:06:31 -0500
committerFrederick Muriuki Muriithi2024-09-09 16:41:46 -0500
commit9cd33ddac3d6848c5443962d66494635feadef51 (patch)
tree385a559380f4d6a961fefb38ad410ad9ca27b052 /uploader/population
parent707c715d1e336ee45bdcced031881ed603b9297a (diff)
downloadgn-uploader-9cd33ddac3d6848c5443962d66494635feadef51.tar.gz
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.
Diffstat (limited to 'uploader/population')
-rw-r--r--uploader/population/views.py2
1 files changed, 2 insertions, 0 deletions
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")