diff options
| author | Frederick Muriuki Muriithi | 2026-02-09 12:04:59 -0600 |
|---|---|---|
| committer | Frederick Muriuki Muriithi | 2026-02-09 12:04:59 -0600 |
| commit | e3d8b80b76d56227244972690e65cc37688372dc (patch) | |
| tree | 255ba0b72fe1e8cb41609350b8c920be02c02f35 /uploader/samples | |
| parent | 25e1047faec00b117b962a9d453d536d3843ca41 (diff) | |
| download | gn-uploader-e3d8b80b76d56227244972690e65cc37688372dc.tar.gz | |
Update configuration variable name.
Diffstat (limited to 'uploader/samples')
| -rw-r--r-- | uploader/samples/views.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/uploader/samples/views.py b/uploader/samples/views.py index ee002ba..1c0569d 100644 --- a/uploader/samples/views.py +++ b/uploader/samples/views.py @@ -138,7 +138,7 @@ def upload_samples(species_id: int, population_id: int):#pylint: disable=[too-ma try: samples_file = save_file(request.files["samples_file"], - Path(app.config["UPLOAD_FOLDER"])) + Path(app.config["UPLOADS_DIRECTORY"])) except AssertionError: flash("You need to provide a file with the samples data.", "alert-error") @@ -176,7 +176,7 @@ def upload_samples(species_id: int, population_id: int):#pylint: disable=[too-ma }, external_id=session.logged_in_user_id()), _jobs_db, - Path(f"{app.config['UPLOAD_FOLDER']}/job_errors").absolute(), + Path(f"{app.config['UPLOADS_DIRECTORY']}/job_errors").absolute(), loglevel=logging.getLevelName( app.logger.getEffectiveLevel()).lower()) return redirect( |
