From fcf257bff816703433d10b942f959dbb78f6c5e3 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Fri, 28 Oct 2022 14:55:56 +0530 Subject: Query genenetwork3 API for search. genenetwork2 should be a thin wrapper web UI around the genenetwork3 API. Hence, this move. * etc/default_settings.py (XAPIAN_DB_PATH): Delete variable. * wqflask/wqflask/database.py: Remove xapian import. (xapian_database, xapian_writable_database): Delete functions. * wqflask/wqflask/gsearch.py: Do not import json, xapian, Nothing from pymonad.maybe, base, utility.authentication_tools and wqflask.database. Import MonadicDict from gn3.monads instead of utility.monads and GN3_LOCAL_URL from utility.tools. (GSearch.__init__): Query genenetwork3 search API instead of directly reading a Xapian index. --- etc/default_settings.py | 2 -- 1 file changed, 2 deletions(-) (limited to 'etc') diff --git a/etc/default_settings.py b/etc/default_settings.py index ab5a06cf..6d7ac063 100644 --- a/etc/default_settings.py +++ b/etc/default_settings.py @@ -35,8 +35,6 @@ GN2_PROXY = "http://localhost:8080" # GN PROXY GN_PROXY_URL="https://genenetwork.org/gn3-proxy/" -# Xapian index -XAPIAN_DB_PATH = "xapian" # ---- MySQL -- cgit v1.2.3