added documentation

llm-extraction
youainti 3 years ago
parent 4a2b1ea2ed
commit 1bdcc2fd83

@ -1,3 +1,7 @@
# Description
# This program tests the ability to connect the the DB
#
import psycopg2 as psyco
conn = psyco.connect(dbname="aact_db", user="root", host="will-office", password="root")

@ -1,4 +1,3 @@
from tkinter import W
import requests
import psycopg2 as psyco
from datetime import datetime
@ -223,6 +222,7 @@ def flag_trials_of_interest(db_connection):
;
"""
#TODO: actually send it to the database.
#Should probably have thsi saved as a file, such as the downloader_prep.sql file.
def reserve_trials(db_connection, limit=10):
"""

@ -0,0 +1,20 @@
# File descriptions
db_connection.py
- is just a test file
- [ ] TODO: should be incorporated in a tests justfile recipe. maybe moved to a test location?
downloader_prep.sql
- contains sql to identify which trials are of interest.
- [ ] TODO: add into the automation routine somewhere.
downloader.py
- does the actual downloading
- setup to also act as a python module if needed.
- [ ] TODO: there are quite a few things that need cleaned or refactored.
./tests/download_tests.py
- downloads some test html values from clinicaltrials.gov

@ -48,7 +48,7 @@ setup-containers:
#Stop the appropriate docker container
stop-containers:
#stop all docker containers if they are currently running.
#The if statement is used because sometimes there are no running containers
#The if [empty string] statement because sometimes there are no running containers
if [ -n "{{docker_container}}" ]; then docker stop {{docker_container}}; fi
@echo "confirmed that docker containers {{docker_container}} are stopped"

Loading…
Cancel
Save