diff --git a/cts_calcs b/cts_calcs index 307aad0..6f700c4 160000 --- a/cts_calcs +++ b/cts_calcs @@ -1 +1 @@ -Subproject commit 307aad0e26ff8cbdfee3fa3450ccd5f04420ff00 +Subproject commit 6f700c4430176cfca73418cb7dc0ea9342f1cbd9 diff --git a/tasks.py b/tasks.py index 92a58cd..f0e04e9 100644 --- a/tasks.py +++ b/tasks.py @@ -560,15 +560,22 @@ def handle_epi_request(self, sessionid, request_post): ) return for _data_obj in _results.get('data', []): - _epi_prop = _data_obj.get('prop') - _cts_prop_name = self.epi_calc.props[self.epi_calc.epi_props.index(_epi_prop)] # map epi ws key to cts prop key - _method = _data_obj.get('method') - if _method: - # Use abbreviated method name for pchem table: - _epi_methods = self.epi_calc.propMap.get(_cts_prop_name).get('methods', {}) - _method = _epi_methods.get(_data_obj['method']) # use pchem table name for method - if _cts_prop_name in props: - _data_obj.update(_response_info) # data obj going to client needs some extra keys - _data_obj['prop'] = _cts_prop_name - _data_obj['method'] = _method - self.redis_conn.publish(sessionid, json.dumps(_data_obj)) \ No newline at end of file + + self.redis_conn.publish(sessionid, json.dumps(_data_obj)) + + # _epi_prop = _data_obj.get('prop') + + # logging.warning("_epi_prop: {}".format(_epi_prop)) + # epi_prop = self.epi_calc.epi_props.index(_epi_prop) + # logging.warning("epi_prop: {}".format(epi_prop)) + # _cts_prop_name = self.epi_calc.props[self.epi_calc.epi_props.index(_epi_prop)] # map epi ws key to cts prop key + # _method = _data_obj.get('method') + # if _method: + # # Use abbreviated method name for pchem table: + # _epi_methods = self.epi_calc.propMap.get(_cts_prop_name).get('methods', {}) + # _method = _epi_methods.get(_data_obj['method']) # use pchem table name for method + # if _cts_prop_name in props: + # _data_obj.update(_response_info) # data obj going to client needs some extra keys + # _data_obj['prop'] = _cts_prop_name + # _data_obj['method'] = _method + # self.redis_conn.publish(sessionid, json.dumps(_data_obj)) \ No newline at end of file