Skip to content

Commit

Permalink
Load history json template data mapping updated (#143)
Browse files Browse the repository at this point in the history
* added length for snippetCount in report template

* pyproject.toml update

* remove time conversion function

* remove date util dependency

* update template to add load history data

* update template data mapping

---------

Co-authored-by: rutujaCopods <[email protected]>
  • Loading branch information
2 people authored and shreyas.cd committed Feb 13, 2024
1 parent fa16b52 commit b438876
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pebblo/reports/templates/weasyprintTemplate.html
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
<div class="inter flex items-center">
<div class="surface-10 font-14 medium">Load History</div>
<div class="surface-10-opacity ml-2 font-12">
Last {{data.loadHistory|length}} Reports
Last {{data.loadHistory.history|length}} Reports
</div>
</div>
<div class="mt-3 inter">
Expand All @@ -128,7 +128,7 @@
</tr>
</thead>
<tbody class="surface-10 font-13">
{% for item in data.loadHistory %}
{% for item in data.loadHistory.history %}
<tr>
<td colspan="2">{{ item.reportName }}</td>
<td class="text-end">{{ item.findings }}</td>
Expand All @@ -141,7 +141,7 @@
</div>
</div>
<div class="mt-2 inter surface-10-opacity font-11">
Find more reports on: -
Find more reports on: {{ loadHistory.moreReportsPath }}
</div>

<div class="mt-12">
Expand Down

0 comments on commit b438876

Please sign in to comment.