Commit 3787a339 authored by Davide Lagoa's avatar Davide Lagoa
Browse files

new configurations added to file

parent 08cf258e
......@@ -364,7 +364,11 @@ def enumerate_items(*args, **kwargs):
def result_parser(id):
databases, tc_systems, reactionID, metaID, reaction, metabolites = database_retriever_by_id(id)
url = CONFIGURATIONS["database"]
user = CONFIGURATIONS["dbusername"]
password = CONFIGURATIONS["dbpassword"]
databases, tc_systems, reactionID, metaID, reaction, metabolites = database_retriever_by_id(id, url, user, password)
if not metabolites:
return None
......
from neo4jPythonDriver import neo4jPythonDriver
def database_retriever_by_id(id):
url = 'bolt://palsson.di.uminho.pt:7687'
user = 'neo4j'
password = 'password'
def database_retriever_by_id(id, url, user, password):
driver = neo4jPythonDriver(url, user, password)
session = driver.initSession()
......
......@@ -34,4 +34,13 @@ workers = /configs/workerConfigs.conf
handshake = /handshake
#16 - check worker connection
workerLog = /retrieveLogs
\ No newline at end of file
workerLog = /retrieveLogs
#17 - database URL
database = bolt://palsson.di.uminho.pt:7687
#18 - database username
dbusername = neo4j
#19 - database password
dbpassword = password
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment