From 0611213e1d38c75bc5c87a154bd4e5893f721780 Mon Sep 17 00:00:00 2001 From: Manuel Holtgrewe Date: Fri, 26 Aug 2022 12:41:36 +0200 Subject: [PATCH] Fix import of tads and geneinfo (#625). Related-Issue: #625 Closes: #625 Projected-Results-Impact: none --- HISTORY.rst | 1 + importer/management/commands/import_tables.py | 7 +++---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/HISTORY.rst b/HISTORY.rst index 9d46d5c56..2083d012a 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -89,6 +89,7 @@ Full Change List - Fix bug with thousand genomes frequencies in SV filtration (#619). - Displaying disease gene icon also for SVs (#620). - Fix bug with gene constraint display for intergenic variants (#620). +- Fix import bug in import_tables.py (#625). ------ v1.2.0 diff --git a/importer/management/commands/import_tables.py b/importer/management/commands/import_tables.py index 055fda913..a1afecdf5 100644 --- a/importer/management/commands/import_tables.py +++ b/importer/management/commands/import_tables.py @@ -370,8 +370,7 @@ def _truncate(self, models): def _import_tad_set(self, path, tables, subset_key, force, truncate): """TAD import""" release_info = self._get_table_info(path, tables[0].__name__)[1] - if not self._create_import_info_record(release_info): - return False + self._create_import_info_record(release_info) # Truncate tables if asked to do so. if truncate: @@ -417,8 +416,8 @@ def _import_gene_interval(self, path, tables, subset_key, force, truncate): """Common code for RefSeq and ENSEMBL gene import.""" release_info = self._get_table_info(path, tables[0].__name__)[1] release_info["table"] += ":%s" % subset_key - if not self._create_import_info_record(release_info): - return False + self._create_import_info_record(release_info) + # Truncate tables if asked to do so. if truncate: self._truncate((GeneInterval,))