Skip to content

Commit

Permalink
Small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Chiara Rasi committed Oct 8, 2024
1 parent ad8568f commit 9559379
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/chanjo2/endpoints/overview.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ async def gene_overview(
get_gene_overview_coverage_stats(form_data=validated_form, session=db)
)

print(gene_overview_content)

return templates.TemplateResponse(
request=request, name="gene-overview.html", context=gene_overview_content
)
Expand Down
1 change: 1 addition & 0 deletions src/chanjo2/meta/handle_report_contents.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ def get_gene_overview_coverage_stats(form_data: GeneReportForm, session: Session
build=form_data.build, hgnc_id=form_data.hgnc_gene_id, db=session
)
if gene is None:
gene_stats["gene"] = {"hgnc_id": form_data.hgnc_gene_id}
return gene_stats

gene_stats["gene"] = gene
Expand Down
3 changes: 3 additions & 0 deletions src/chanjo2/templates/gene-overview.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ <h2>Gene: {{ gene.hgnc_symbol or gene.hgnc_id }}</h2>
</td>
</tr>
<br>
{% else %}
No intervals found in database for gene {{gene.hgnc_symbol or gene.hgnc_id}}.
{% endfor %}

{% endmacro %}

{% block title %}
Expand Down

0 comments on commit 9559379

Please sign in to comment.