Skip to content

Commit

Permalink
Squashed 'CRISPResso2/CRISPRessoReports/' changes from ae44f047..4eee…
Browse files Browse the repository at this point in the history
…b22e

4eeeb22e Guardrails (#11)

git-subtree-dir: CRISPResso2/CRISPRessoReports
git-subtree-split: 4eeeb22e31ce7935f1bf56446ebeacf5ade5fc28
  • Loading branch information
Snicker7 committed Aug 16, 2023
1 parent ac75e43 commit ece1089
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
1 change: 1 addition & 0 deletions CRISPRessoReport.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ def make_report(run_data, crispresso_report_file, crispresso_folder, _ROOT):
crispresso_data_path += "/"

report_data = {
'guardrails': [] if 'guardrails' not in run_data['results'].keys() else run_data['results']['guardrails'],
'amplicons': data['amplicons'],
'figures': data['figures'],
'run_data': run_data,
Expand Down
10 changes: 4 additions & 6 deletions templates/report.html
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,10 @@
{% if report_data['report_display_name'] != '' %}
<h5>{{report_data['report_display_name']}}</h5>
{% endif %}
{% if 'guardrails' in report_data %}
{% if report_data['guardrails']|length > 0 %}
{% for message in report_data['guardrails'] %}
{{message}}
{% endfor %}
{% endif %}
{% if 'guardrails' in report_data and report_data['guardrails']|length > 0 %}
{% for message in report_data['guardrails'] %}
{{message}}
{% endfor %}
{% endif %}
<h5>CRISPResso2 run information</h5>
<ul class="nav nav-tabs justify-content-center card-header-tabs" id="log-tab" role="tablist">
Expand Down

0 comments on commit ece1089

Please sign in to comment.