about summary refs log tree commit diff
path: root/server.py
diff options
context:
space:
mode:
authorPjotr Prins2026-03-28 10:21:37 +0100
committerPjotr Prins2026-03-28 10:21:37 +0100
commitae1815a476d341abfc913bf5d8d6b7476c219b75 (patch)
treee2bb63e036917e34fbf55fca85262ebe28ad54c5 /server.py
parent3554086ea2858c70d4a5be66e679890bad1216cb (diff)
downloadgenecup-ae1815a476d341abfc913bf5d8d6b7476c219b75.tar.gz
Debugging finding files
Diffstat (limited to 'server.py')
-rwxr-xr-xserver.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/server.py b/server.py
index 247d773..0cbbfc4 100755
--- a/server.py
+++ b/server.py
@@ -73,7 +73,9 @@ app=Flask(__name__)
 datadir=os.environ.get("GENECUP_DATADIR", "./")
 
 app.config['SECRET_KEY'] = '#DtfrL98G5t1dC*4'
-app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///'+datadir+'userspub.sqlite'
+sqlitedb = 'sqlite:///'+datadir+'/userspub.sqlite'
+print(sqlitedb)
+app.config['SQLALCHEMY_DATABASE_URI'] = sqlitedb
 db = SQLAlchemy(app)
 
 
@@ -1015,7 +1017,7 @@ def search():
 
             for gene in genes:
                 abstracts_raw = getabstracts(gene,all_d) # all_d might be empty if no search_type matches
-                #print(abstracts_raw)
+                print(abstracts_raw)
                 sentences_ls=[]
 
                 for row in abstracts_raw.split("\n"):