diff options
Diffstat (limited to 'uploader')
| -rw-r--r-- | uploader/background_jobs.py | 1 | ||||
| -rw-r--r-- | uploader/phenotypes/models.py | 2 | ||||
| -rw-r--r-- | uploader/phenotypes/views.py | 3 |
3 files changed, 3 insertions, 3 deletions
diff --git a/uploader/background_jobs.py b/uploader/background_jobs.py index fc59ec7..4aded1d 100644 --- a/uploader/background_jobs.py +++ b/uploader/background_jobs.py @@ -5,7 +5,6 @@ from typing import Callable from functools import partial from flask import ( - request, redirect, Response, Blueprint, diff --git a/uploader/phenotypes/models.py b/uploader/phenotypes/models.py index af06376..e962e62 100644 --- a/uploader/phenotypes/models.py +++ b/uploader/phenotypes/models.py @@ -248,7 +248,7 @@ def phenotypes_data(conn: mdb.Connection, return tuple(dict(row) for row in cursor.fetchall()) -def phenotypes_vector_data( +def phenotypes_vector_data(# pylint: disable=[too-many-arguments, too-many-positional-arguments] conn: mdb.Connection, species_id: int, population_id: int, diff --git a/uploader/phenotypes/views.py b/uploader/phenotypes/views.py index 5b32fc0..ead43ab 100644 --- a/uploader/phenotypes/views.py +++ b/uploader/phenotypes/views.py @@ -428,7 +428,7 @@ def add_phenotypes(species: dict, population: dict, dataset: dict, **kwargs):# p return render_template( sui_template("phenotypes/add-phenotypes-with-rqtl2-bundle.html" if use_bundle - else f"phenotypes/add-phenotypes-raw-files.html"), + else "phenotypes/add-phenotypes-raw-files.html"), species=species, population=population, dataset=dataset, @@ -1078,6 +1078,7 @@ def recompute_means(# pylint: disable=[unused-argument] def return_to_dataset_view_handler(job, msg: str): + """Handler for background jobs: Returns to `View Dataset` page.""" flash(msg, "alert alert-success") return redirect(url_for( "species.populations.phenotypes.view_dataset", |
