chore(growth): adjust key in ets tables to contain atoms

The `ets` tables containing growth indicator has a key in the form of
`{gender :: atom(), unit :: atom(), value :: number()}`.
This commit is contained in:
João Paulo Dubas 2024-10-05 15:07:10 +00:00
parent fa65a36852
commit 82d7009b34
Signed by: joao.dubas
SSH Key Fingerprint: SHA256:V1mixgOGRc/YMhGx/DNkOSmJxgA2vHNrDZEk3wt/kOA

View File

@ -154,7 +154,7 @@ defmodule Growth.Indicators.Load do
as_float(t)
end
key = {String.to_atom(gender), unit, converted_t}
key = {String.to_atom(gender), String.to_atom(unit), converted_t}
value = %{
l: as_float(l),