Skip to content
Snippets Groups Projects
Commit 4e5aa5d6 authored by AndiMajore's avatar AndiMajore
Browse files

clean up and small fixes

Former-commit-id: 8b9b1acff6bc1f677d8b0b37c30f31cd7306fe6c [formerly 86383ed1e25dddd845b0080be00df464c6bd3322]
Former-commit-id: 348c168feb297f83db240a81c3ea7113d40d473e
parent e5962ad1
No related branches found
No related tags found
No related merge requests found
ec5b90cd1d5b718e3c6e52e5f705069f47135d45
\ No newline at end of file
87f04b57e3e01664642eb6b33a7796fe6c723837
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
2e1b1c55bbfd159478647b23a99819c35cd913e0
\ No newline at end of file
......@@ -16,7 +16,7 @@ def task_update_db_from_nedrex():
logger.info('Updating data...')
n = populate({"all": True, "update": True, "data_dir": data_dir})
logger.info(f'Added {n} entries!')
if 1 > 0:
if n > 0:
logger.info('Recreating networks...')
proc = subprocess.Popen(['python3', '/usr/src/drugstone/manage.py', 'make_graphs'])
out,err = proc.communicate()
......
......@@ -11,8 +11,8 @@ file="store/docker-entrypoint.lock"
python3 manage.py migrate
python3 manage.py createfixtures
python3 manage.py cleanuptasks
# python3 manage.py populate_db -u --all
# python3 manage.py make_graphs
python3 manage.py populate_db --all --update
python3 manage.py make_graphs
# touch $file
#fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment