From 1c7a49c331c48bdbf784aa38f7fab1b2c96f3412 Mon Sep 17 00:00:00 2001 From: felmer <felmer> Date: Thu, 21 Jun 2012 07:16:19 +0000 Subject: [PATCH] SP-130, CCS-11: bug in aggregation script fixed SVN: 25822 --- .../dss/reporting-plugins/demo-proteomics-aggregation/script.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rtd_phosphonetx/source/core-plugins/dev-demo/1/dss/reporting-plugins/demo-proteomics-aggregation/script.py b/rtd_phosphonetx/source/core-plugins/dev-demo/1/dss/reporting-plugins/demo-proteomics-aggregation/script.py index cc5503e87f5..e769bb41bc1 100644 --- a/rtd_phosphonetx/source/core-plugins/dev-demo/1/dss/reporting-plugins/demo-proteomics-aggregation/script.py +++ b/rtd_phosphonetx/source/core-plugins/dev-demo/1/dss/reporting-plugins/demo-proteomics-aggregation/script.py @@ -86,6 +86,8 @@ def aggregate(parameters, tableBuilder): tableBuilder.addHeader(SEARCH_EXPERIMENT_PERM_ID) tableBuilder.addHeader(ACCESION_NUMBER) tableBuilder.addHeader(DESCRIPTION) + if len(searchExperimentsByPermIdDict) == 0: + return protein = '%' + parameters.get('protein') + '%' permIds = createPermIdList(searchExperimentsByPermIdDict) result = queryService.select("proteomics-db", -- GitLab