From 52a494a32b6939bc1fe40b2829f88ad09b9285af Mon Sep 17 00:00:00 2001 From: Rabab Fatima Date: Thu, 6 Jul 2023 16:39:23 -0500 Subject: [PATCH] backend linting fixes --- backend/src/core/phenotips_importer.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/backend/src/core/phenotips_importer.py b/backend/src/core/phenotips_importer.py index 933dd26b..8edd0928 100644 --- a/backend/src/core/phenotips_importer.py +++ b/backend/src/core/phenotips_importer.py @@ -116,7 +116,8 @@ def import_analysis_data(self, phenotips_json_data, phenotips_variants, phenotip if genomic_unit['gene']: new_sections = [{ "header": str(genomic_unit["gene"] + " Gene to Phenotype"), "content": [ - {"type": "images-dataset", "field": str(genomic_unit["gene"] + " Gene to Phenotype"), "value": []}, + {"type": "images-dataset", "field": str(genomic_unit["gene"] + " Gene to Phenotype"), + "value": []}, { "type": "section-text", "field": 'HPO Terms', "value": [self.extract_hpo_terms(phenotips_json_data["features"])] @@ -124,10 +125,12 @@ def import_analysis_data(self, phenotips_json_data, phenotips_variants, phenotip ] }, { "header": str(genomic_unit["gene"] + " Molecular Mechanism"), - "content": [{"type": "section-text", "field": str(genomic_unit["gene"] + " Molecular Mechanism"), "value": []}] + "content": [{"type": "section-text", "field": str(genomic_unit["gene"] + " Molecular Mechanism"), + "value": []}] }, { "header": str(genomic_unit["gene"] + " Function"), - "content": [{"type": "images-dataset", "field": str(genomic_unit["gene"] + " Function"), "value": []},] + "content": [{"type": "images-dataset", "field": str(genomic_unit["gene"] + " Function"), + "value": []},] }] analysis_data['sections'].extend(new_sections)