show other target objectives

This commit is contained in:
bohanjason 2020-05-13 03:07:21 +00:00
parent 1a74cac153
commit 24336906a3
1 changed files with 2 additions and 0 deletions

View File

@ -158,6 +158,8 @@ class TargetObjectives:
for target_name, target_instance in self._registry[dbms_id].items(): for target_name, target_instance in self._registry[dbms_id].items():
if target_name == target_objective: if target_name == target_objective:
targets_list.insert(0, (target_name, target_instance)) targets_list.insert(0, (target_name, target_instance))
elif not target_instance.is_udf():
targets_list.append((target_name, target_instance))
if dbms_id in self._udm_metadatas: if dbms_id in self._udm_metadatas:
metadata = targets_list + list(self._udm_metadatas[dbms_id]) +\ metadata = targets_list + list(self._udm_metadatas[dbms_id]) +\
list(self._metric_metadatas[dbms_id]) list(self._metric_metadatas[dbms_id])