Add more statistics

This commit is contained in:
Michael De Roover 2020-05-12 22:54:34 +02:00
parent 9fb4a3dc14
commit 376a46bf4d
Signed by: vim
GPG Key ID: 075496E232CE04CB

12
cv
View File

@ -41,14 +41,16 @@ yget(){
get "$1" get "$1"
} }
result(){ result(){
echo "Total: $(get cases)" echo "Total: $(get cases)"
echo "Active: $(get active)" echo "Active: $(get active)"
echo "New: $(get todayCases)" echo "New: $(get todayCases)"
echo "Tests: $(get tests)" echo "Deaths: $(get deaths)"
echo "Recovered: $(get recovered)"
echo "Tests: $(get tests)"
if [ -f "$data/$ydate-$country" ] if [ -f "$data/$ydate-$country" ]
then then
show "Yesterday's stats:" show "Yesterday's stats:"
echo "New: $(yget todayCases)" echo "New: $(yget todayCases)"
if [ "$(get todayCases)" == "0" ] if [ "$(get todayCases)" == "0" ]
then then
show "Seems like the cases today are not yet updated." show "Seems like the cases today are not yet updated."