From 1e278eea9945a8c158add410f14df8d0ee702451 Mon Sep 17 00:00:00 2001 From: cramakri <cramakri> Date: Tue, 9 Oct 2012 12:27:58 +0000 Subject: [PATCH] Fixed typo/copy-paste errors SVN: 27109 --- .../1/dss/reporting-plugins/ipad-read-service/ipad_read.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openbis-ipad/ipad-example-data/ipad-ui/1/dss/reporting-plugins/ipad-read-service/ipad_read.py b/openbis-ipad/ipad-example-data/ipad-ui/1/dss/reporting-plugins/ipad-read-service/ipad_read.py index 3b807737ff7..79d5d25477d 100644 --- a/openbis-ipad/ipad-example-data/ipad-ui/1/dss/reporting-plugins/ipad-read-service/ipad_read.py +++ b/openbis-ipad/ipad-example-data/ipad-ui/1/dss/reporting-plugins/ipad-read-service/ipad_read.py @@ -60,7 +60,7 @@ def material_to_dict(material): material_dict['SUMMARY'] = material.getPropertyValue("DESC") material_dict['IMAGE_URL'] = "" - prop_names = ["NAME", "PROT_NAME", "GENE_NAME", "LENGTH", "CHEMBL", "DESC", "FORUMLA", "WEIGHT", "SMILES"] + prop_names = ["NAME", "PROT_NAME", "GENE_NAME", "LENGTH", "CHEMBL", "DESC", "FORMULA", "WEIGHT", "SMILES"] properties = dict((name, material.getPropertyValue(name)) for name in prop_names if material.getPropertyValue(name) is not None) material_dict['PROPERTIES'] = ObjectMapper().writeValueAsString(properties) return material_dict @@ -73,7 +73,7 @@ def sample_to_dict(five_ht_sample): sample_dict['PERM_ID'] = five_ht_sample.getPermId() refcon = {} refcon['entityKind'] = 'SAMPLE' - refcon['entityType'] = material.getSampleType() + refcon['entityType'] = five_ht_sample.getSampleType() sample_dict['REFCON'] = ObjectMapper().writeValueAsString(refcon) sample_dict['GROUP'] = five_ht_sample.getSampleType() sample_dict['IMAGE_URL'] = "" -- GitLab