Commit d1b8fa96 authored by André Anjos's avatar André Anjos 💬

[search] Fix leaderbaord result finding after experiment model changes

parent 47182d67
......@@ -179,8 +179,7 @@ class Leaderboard(models.Model):
header = []
for block in blocks:
analyzer_output = Result.objects.filter(block=block,
analyzer_output = Result.objects.filter(cache__in=block.outputs.all(), type__in=Result.SIMPLE_TYPE_NAMES).order_by('name')
if not header: #first row, set order
header = [ for k in analyzer_output]
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment