aboutsummaryrefslogtreecommitdiff
path: root/tests/unit/db/test_datasets.py
diff options
context:
space:
mode:
authorArun Isaac2022-10-28 16:47:30 +0530
committerArun Isaac2022-10-28 16:57:30 +0530
commitfaf2739d30decda1e0ba46699ebec776ef7d3e0d (patch)
tree89541bc760121a0b2e696894adf2d467cd59c092 /tests/unit/db/test_datasets.py
parentd36d2faaceff255983a2baa5ef982936d2f4a6ae (diff)
downloadgenenetwork3-faf2739d30decda1e0ba46699ebec776ef7d3e0d.tar.gz
Use Xapian index path from app settings.
App settings should be accessed from current_app. It should not be hard-coded to a variable in a module. * gn3/db_utils.py: Do not import XAPIAN_DB_PATH from gn3.settings. (xapian_database): Accept path argument. * gn3/api/search.py: Import current_app from flask. (search_results): Pass Xapian index path to xapian_database.
Diffstat (limited to 'tests/unit/db/test_datasets.py')
0 files changed, 0 insertions, 0 deletions