Skip to content

Commit

Permalink
add newVirusTestsBySpecimenDate metric
Browse files Browse the repository at this point in the history
Added new metric to the list of metrics or replaced
the old metric (newVirusTestsByPublishDate) by the new one
  • Loading branch information
Jaroslaw Michalski committed Oct 30, 2023
1 parent d2e8d38 commit ee417f7
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 ee417f7

Please sign in to comment.