diff options
| author | Pjotr Prins | 2026-03-28 10:21:37 +0100 |
|---|---|---|
| committer | Pjotr Prins | 2026-03-28 10:21:37 +0100 |
| commit | ae1815a476d341abfc913bf5d8d6b7476c219b75 (patch) | |
| tree | e2bb63e036917e34fbf55fca85262ebe28ad54c5 /server.py | |
| parent | 3554086ea2858c70d4a5be66e679890bad1216cb (diff) | |
| download | genecup-ae1815a476d341abfc913bf5d8d6b7476c219b75.tar.gz | |
Debugging finding files
Diffstat (limited to 'server.py')
| -rwxr-xr-x | server.py | 6 |
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"): |
