aboutsummaryrefslogtreecommitdiff
path: root/uploader/expression_data
diff options
context:
space:
mode:
Diffstat (limited to 'uploader/expression_data')
-rw-r--r--uploader/expression_data/views.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/uploader/expression_data/views.py b/uploader/expression_data/views.py
index 88c4528..bbe6538 100644
--- a/uploader/expression_data/views.py
+++ b/uploader/expression_data/views.py
@@ -168,7 +168,8 @@ def upload_file(species_id: int, population_id: int):
flash(error, "alert-danger error-expr-data")
return redirect(url_for("species.populations.expression-data.upload_file"))
- filename = secure_filename(request.files["qc_text_file"].filename)
+ filename = secure_filename(
+ request.files["qc_text_file"].filename)# type: ignore[arg-type]
if not os.path.exists(upload_dir):
os.mkdir(upload_dir)
@@ -236,7 +237,7 @@ def parse_file(species_id: int, population_id: int):
job = jobs.launch_job(
jobs.build_file_verification_job(
rconn, app.config["SQL_URI"], redisurl,
- species_id, filepath, filetype,
+ species_id, filepath, filetype,# type: ignore[arg-type]
app.config["JOBS_TTL_SECONDS"]),
redisurl,
f"{app.config['UPLOAD_FOLDER']}/job_errors")