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:
parent
fa65a36852
commit
82d7009b34
@ -154,7 +154,7 @@ defmodule Growth.Indicators.Load do
|
|||||||
as_float(t)
|
as_float(t)
|
||||||
end
|
end
|
||||||
|
|
||||||
key = {String.to_atom(gender), unit, converted_t}
|
key = {String.to_atom(gender), String.to_atom(unit), converted_t}
|
||||||
|
|
||||||
value = %{
|
value = %{
|
||||||
l: as_float(l),
|
l: as_float(l),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user