diff --git a/corona.fish b/corona.fish
@@ -40,11 +40,8 @@ function corona -a country -d "Track corona-virus cases from fish-shell. 😷️
if ! [ -f "$HOME/.cache/corona.csv" ] \
|| [ (stat -c %y "$HOME/.cache/corona.csv" | cut -d' ' -f1) = "$date" ]
curl -s https://corona-stats.online/\?format=json \
- | jq -r '.data + [.worldStats]
- | map({country, cases, todayCases, deaths, todayDeaths})
- | (.[0] | keys_unsorted) as $keys
- | .[]
- | [.[$keys[]]]
+ | jq -r '.data[], .worldStats
+ | [.country, .cases, .todayCases, .deaths, .todayDeaths]
| @csv' \
> "$HOME/.cache/corona.csv"
end