Updated to be able to run as webpage.

llm-extraction
will king 3 years ago
parent 277b5b9bd5
commit c1f9f6e528

@ -11,7 +11,7 @@ def create_app(test_config=None):
# create and configure the app
app = Flask(__name__, instance_relative_config=True)
app.config.from_mapping(
SECRET_KEY='dev',
SECRET_KEY='6e674d6e41b733270fd01c6257b3a1b4769eb80f3f773cd0fe8eff25f350fc1f',
POSTGRES_DB=ENV["POSTGRES_DB"],
POSTGRES_USER=ENV["POSTGRES_USER"],
POSTGRES_HOST=ENV["POSTGRES_HOST"],

@ -0,0 +1 @@
#at some point I need to add a login or something.

@ -68,7 +68,7 @@ def validate_trial(nct_id):
for condition in condition_list:
id = condition[0]
list_of_insert_data.append((request.form.get(str(id),"rejected"), datetime.now(),id))
print(list_of_insert_data)
store_validation(db_conn, list_of_insert_data)
return redirect(url_for("validation.remaining"))
elif "marked_unmatched" in request.form:

@ -7,5 +7,7 @@ setup(
install_requires=[
'flask',
'psycopg2',
'datetime',
'python-dotenv',
],
)

Loading…
Cancel
Save