diff options
author | Frederick Muriuki Muriithi | 2025-06-10 11:17:34 -0500 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2025-06-10 11:17:34 -0500 |
commit | cda652080ebfc18915875e7422f1e128bab3c7c5 (patch) | |
tree | d8f4d630febb076973e1e14d1970bbe441f49560 /uploader | |
parent | 03e3379d284fb08f1084190d29eb5bde0f39d2ed (diff) | |
download | gn-uploader-cda652080ebfc18915875e7422f1e128bab3c7c5.tar.gz |
On success, redirect to job status check page.
Diffstat (limited to 'uploader')
-rw-r--r-- | uploader/phenotypes/views.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/uploader/phenotypes/views.py b/uploader/phenotypes/views.py index 8ad8fab..333a1e6 100644 --- a/uploader/phenotypes/views.py +++ b/uploader/phenotypes/views.py @@ -653,7 +653,9 @@ def load_data_to_database( def __handle_success__(load_job): app.logger.debug("The phenotypes loading job: %s", load_job) - return str(load_job) + return redirect(url_for( + "background-jobs.job_status", job_id=load_job["job_id"])) + issued = datetime.datetime.now() jwtkey = jwks.newest_jwk_with_rotation( jwks.jwks_directory(app, "UPLOADER_SECRETS"), |