fix the bug when comparing knobs when multiple results have the same knob

This commit is contained in:
yangdsh 2020-02-25 22:24:33 +00:00 committed by Dana Van Aken
parent 60a30c2f85
commit c3c359e6a4
1 changed files with 1 additions and 1 deletions

View File

@ -852,7 +852,7 @@ def dbms_data_view(request, context, dbms_data, session, target_obj):
featured_data = [(k, v, comp_dict[k]) for k, v in list(featured_dict.items())]
if data_type == 'knobs':
met_data = Result.objects.get(knob_data=compare_obj).metric_data.data
met_data = Result.objects.filter(knob_data=compare_obj)[0].metric_data.data
else:
met_data = dbms_data.data