Commit 11f59c45 authored by Vidjil's avatar Vidjil
Browse files

sample_set.py stats_decorator.py decorate sets in stats

parent 30642159
Pipeline #42576 failed with stages
in 2 minutes and 8 seconds
...@@ -806,6 +806,7 @@ def getStatData(results_file_ids): ...@@ -806,6 +806,7 @@ def getStatData(results_file_ids):
sample_set['id'] = res['set_id'] sample_set['id'] = res['set_id']
sample_set['name'] = helpers[set_type].get_name(res[set_type]) sample_set['name'] = helpers[set_type].get_name(res[set_type])
sample_set['info'] = res['set_info'] sample_set['info'] = res['set_info']
sample_set['type'] = set_type
tmp['sample_sets'].append(sample_set) tmp['sample_sets'].append(sample_set)
......
...@@ -76,7 +76,7 @@ class SetsDecorator(StatDecorator): ...@@ -76,7 +76,7 @@ class SetsDecorator(StatDecorator):
def decorate(self, data): def decorate(self, data):
ssets = [] ssets = []
for sample_set in data: for sample_set in data:
d = DIV("(%d) %s" % (sample_set['id'], sample_set['name']), _onclick="db.call('sample_set/index', {'id': '%d'})" % sample_set['id'], _class="pointer") d = DIV("(%d) %s" % (sample_set['id'], sample_set['name']), _onclick="db.call('sample_set/index', {'id': '%d'})" % sample_set['id'], _class="pointer set_token %s_token" % sample_set['type'])
ssets.append(d) ssets.append(d)
return DIV(*ssets) return DIV(*ssets)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment