From 5bc5ec9db15c4afb52e7eba06ed4994488f923f6 Mon Sep 17 00:00:00 2001
From: AndiMajore <andi.majore@googlemail.com>
Date: Fri, 28 Oct 2022 23:56:34 +0200
Subject: [PATCH] fixed issue in make_graphs where no entrez networks were
 prebuild

---
 drugstone/management/commands/make_graphs.py | 2 +-
 scripts/docker-entrypoint.sh                 | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drugstone/management/commands/make_graphs.py b/drugstone/management/commands/make_graphs.py
index 5a1f6ec..1a13741 100755
--- a/drugstone/management/commands/make_graphs.py
+++ b/drugstone/management/commands/make_graphs.py
@@ -254,7 +254,7 @@ class Command(BaseCommand):
                 if hash in uniq_combis:
                     continue
                 uniq_combis.add(hash)
-                for identifier in ['ensg', 'symbol', 'ensembl', 'uniprot']:
+                for identifier in ['ensg', 'symbol', 'entrez', 'uniprot']:
                     parameter_combinations.append([ppi_ds, pdi_ds, identifier])
         # close all database connections so subprocesses will create their own connections
         # this prevents the processes from running into problems because of using the same connection
diff --git a/scripts/docker-entrypoint.sh b/scripts/docker-entrypoint.sh
index 43bf32d..3c90d86 100755
--- a/scripts/docker-entrypoint.sh
+++ b/scripts/docker-entrypoint.sh
@@ -4,7 +4,7 @@ python3 manage.py makemigrations drugstone
 python3 manage.py migrate
 python3 manage.py createfixtures
 python3 manage.py cleanuptasks
-python3 manage.py populate_db --update -a
+#python3 manage.py populate_db --update -a
 python3 manage.py make_graphs
 
 /usr/bin/supervisord -c "/etc/supervisor/conf.d/supervisord.conf"
-- 
GitLab