From ac03874fe305e64cfbe1557514f13e15f4cde2ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20=20MENAGER?= <herve.menager@pasteur.fr> Date: Sun, 13 May 2018 14:17:56 +0200 Subject: [PATCH] strip whitespaces on PPI Family that cleans up the "duplicate" PPI Family in the legacy DB Former-commit-id: 415786fd78adeec26a1ed30aa1ba18d9110febd3 --- ippisite/ippidb/management/commands/import_v1_data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ippisite/ippidb/management/commands/import_v1_data.py b/ippisite/ippidb/management/commands/import_v1_data.py index 79fb98a4..e06733ba 100644 --- a/ippisite/ippidb/management/commands/import_v1_data.py +++ b/ippisite/ippidb/management/commands/import_v1_data.py @@ -245,7 +245,7 @@ select distinct protein.NumUniprot, domain.PfamNumAccession , complexe.NbCopy, disease, created = Disease.objects.get_or_create( name=row[7]) ppi_family, created = PpiFamily.objects.get_or_create( - name=row[9]) + name=row[9].strip()) ppi.family = ppi_family ppi.pdb_id = row[4] ppi.pockets_nb = 1 -- GitLab