diff options
| author | Frederick Muriuki Muriithi | 2024-11-22 12:16:28 -0600 |
|---|---|---|
| committer | Frederick Muriuki Muriithi | 2024-11-22 12:16:28 -0600 |
| commit | 8a84c4d6762446e5fdf9f9121f539c89419ae6a0 (patch) | |
| tree | 0c4d175767bdfb24d83a7f0c15e0ab677e00ebba /uploader/request_checks.py | |
| parent | 82fb92db448f1985b821193bcfdee72d512e27bb (diff) | |
| download | gn-uploader-8a84c4d6762446e5fdf9f9121f539c89419ae6a0.tar.gz | |
Use gn-libs code for db connection.
Use the code in gn-libs to connect to the database, rather than a local module.
Diffstat (limited to 'uploader/request_checks.py')
| -rw-r--r-- | uploader/request_checks.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/uploader/request_checks.py b/uploader/request_checks.py index a24b2f7..f1d8027 100644 --- a/uploader/request_checks.py +++ b/uploader/request_checks.py @@ -4,10 +4,10 @@ These are useful for reusability, and hence maintainability of the code. """ from functools import wraps +from gn_libs.mysqldb import database_connection from flask import flash, url_for, redirect, current_app as app from uploader.species.models import species_by_id -from uploader.db_utils import database_connection from uploader.population.models import population_by_species_and_id def with_species(redirect_uri: str): |
