Commit 8b821a92 authored by Ryan Herbert's avatar Ryan Herbert

sample_set.py sample_set/index.html stats button

a button to launch stats directly for the stats page.
parent 11f59c45
Pipeline #42896 failed with stages
in 2 seconds
......@@ -122,6 +122,14 @@ def index():
)
)
results = [r['results_file'] for r in query]
results_files = {}
for r in results:
k = (r['id'], r['config_id'])
if k not in results_files:
results_files[k] = r.id
results_ids = [results_files[key] for key in results_files]
tag_decorator = TagDecorator(get_tag_prefix())
query_pre_process = db( db.pre_process.id >0 ).select()
pre_process_list = {}
......@@ -144,7 +152,8 @@ def index():
analysis_filename = analysis_filename,
sample_type = db.sample_set[request.vars["id"]].sample_type,
config=config,
tag_decorator=tag_decorator)
tag_decorator=tag_decorator,
results_ids=results_ids)
## return a list of generic sample_sets
def all():
......
......@@ -211,6 +211,7 @@
{{=row.config.name}} </a>
{{pass}}
{{ if fused_count > 0: }}
<span class="button2" onclick="db.call('sample_set/multi_sample_stats', {'custom_result': {{=str([str(v) for v in results_ids])}} })" >stats</span>
<a id="stats_button" target="_blank" class="button2 devel-mode" href="/vidjil/sample_set/result_files?sample_set_ids={{=request.vars['id']}}&config_id=-1">export all results</a>
{{ pass }}
</div>
......
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