From 03b2ee98a1a2da648684e5a1a02c7f8c5b45ddd8 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Tue, 24 Sep 2024 10:31:48 -0500 Subject: typing: Fix type errors --- uploader/expression_data/views.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'uploader/expression_data/views.py') 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") -- cgit v1.2.3