diff options
Diffstat (limited to 'lib/lsg_irc/coronavirus_plugin.ex')
-rw-r--r-- | lib/lsg_irc/coronavirus_plugin.ex | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/lsg_irc/coronavirus_plugin.ex b/lib/lsg_irc/coronavirus_plugin.ex index debefa3..8038d14 100644 --- a/lib/lsg_irc/coronavirus_plugin.ex +++ b/lib/lsg_irc/coronavirus_plugin.ex @@ -102,7 +102,8 @@ defmodule LSG.IRC.CoronavirusPlugin do |> Enum.reduce(%{}, fn(line, acc) -> case line do # FIPS,Admin2,Province_State,Country_Region,Last_Update,Lat,Long_,Confirmed,Deaths,Recovered,Active,Combined_Key - [_, _, state, region, update, _lat, _lng, confirmed, deaths, recovered, _active, _combined_key] -> + #0FIPS,Admin2,Province_State,Country_Region,Last_Update,Lat,Long_,Confirmed,Deaths,Recovered,Active,Combined_Key,Incidence_Rate,Case-Fatality_Ratio + [_, _, state, region, update, _lat, _lng, confirmed, deaths, recovered, _active, _combined_key, _incidence_rate, _fatality_ratio] -> state = String.downcase(state) region = String.downcase(region) confirmed = String.to_integer(confirmed) |