aboutsummaryrefslogtreecommitdiff
path: root/scripts/maintenance/QTL_Reaper_v6.py
AgeCommit message (Collapse)Author
2024-10-29Read connection detail from file. Use contextmanager.Frederick Muriuki Muriithi
Read connection details from file to make it easier to change host(s) in use. Use contextmanager to manage the connections.
2024-10-29Use argparse.ArgumentParser to collect CLI args from userFrederick Muriuki Muriithi
Collect arguments from the CLI using argparse rather than sys.argv directly.
2024-10-29Change indentation, wrap code in function and create entry-point.Frederick Muriuki Muriithi
2022-03-10Use context manager with database connectionFrederick Muriuki Muriithi
Use the `with` context manager with database connections and cursors to ensure that they are closed once they are no longer needed. Where it was not feasible to use the `with` context manager without a huge refactor/rewrite, the cursors and connections are closed manually.
2020-08-19Remove extra whitespace(or add it) from comma separated itemsBonfaceKilz
See: <https://docs.python.org/2/library/2to3.html#2to3fixer-urllib>
2020-08-19Wrap `map()` in a `list` callBonfaceKilz
Run `2to3-3.8 -f map -w .` See: <https://docs.python.org/2/library/2to3.html#2to3fixer-map>
2020-08-18Wrap print statements in parenthesesBonfaceKilz
2018-04-03@acenteno added data upload scripts into main repoPjotr Prins