Skip to content

Commit

Permalink
Merge pull request #81 from UKHSA-Internal/COVP-172_internal_server_e…
Browse files Browse the repository at this point in the history
…rror_fix

COVP-172 Add newVirusTestsBySpecimenDate metric
  • Loading branch information
adebayoolabintan authored Oct 31, 2023
2 parents d2e8d38 + ee417f7 commit 943c327
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
6 changes: 6 additions & 0 deletions app/landing/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,12 @@
'newVirusTestsByPublishDateRollingSum',
'newVirusTestsByPublishDateDirection',

'newVirusTestsBySpecimenDate',
'newVirusTestsBySpecimenDateChange',
'newVirusTestsBySpecimenDateChangePercentage',
'newVirusTestsBySpecimenDateRollingSum',
'newVirusTestsBySpecimenDateDirection',

'transmissionRateMin',
'transmissionRateMax',
'transmissionRateGrowthRateMin',
Expand Down
8 changes: 4 additions & 4 deletions app/templates/html/components/easy_read/testing.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% set latest = ("newVirusTestsByPublishDate" | get_data(data)) %}
{% set change = ("newVirusTestsByPublishDateChange" | get_data(data)) %}
{% set changePercentage = ("newVirusTestsByPublishDateChangePercentage" | get_data(data)) %}
{% set rollingSum = ("newVirusTestsByPublishDateRollingSum" | get_data(data)) %}
{% set latest = ("newVirusTestsBySpecimenDate" | get_data(data)) %}
{% set change = ("newVirusTestsBySpecimenDateChange" | get_data(data)) %}
{% set changePercentage = ("newVirusTestsBySpecimenDateChangePercentage" | get_data(data)) %}
{% set rollingSum = ("newVirusTestsBySpecimenDateRollingSum" | get_data(data)) %}

<h3 id="testing">Testing{% if latest.areaName != "United Kingdom" %} in {{ latest.areaName }}{% endif %}</h3>
<p>Testing is where we do a test to see who has coronavirus. Some people are tested more than
Expand Down
8 changes: 4 additions & 4 deletions app/templates/latex/sections/testing.tex
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% set latest = ("newVirusTestsByPublishDate" | get_data(data)) %}
{% set change = ("newVirusTestsByPublishDateChange" | get_data(data)) %}
{% set changePercentage = ("newVirusTestsByPublishDateChangePercentage" | get_data(data)) %}
{% set rollingSum = ("newVirusTestsByPublishDateRollingSum" | get_data(data)) %}
{% set latest = ("newVirusTestsBySpecimenDate" | get_data(data)) %}
{% set change = ("newVirusTestsBySpecimenDateChange" | get_data(data)) %}
{% set changePercentage = ("newVirusTestsBySpecimenDateChangePercentage" | get_data(data)) %}
{% set rollingSum = ("newVirusTestsBySpecimenDateRollingSum" | get_data(data)) %}

\section{Testing{% if latest.areaName != "United Kingdom" %} in {{ latest.areaName | trim_area_name }}{% endif %} }
Expand Down

0 comments on commit 943c327

Please sign in to comment.