From 82d7009b34152461668f60720b644892db5de11c Mon Sep 17 00:00:00 2001 From: Joao P Dubas Date: Sat, 5 Oct 2024 15:07:10 +0000 Subject: [PATCH] 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()}`. --- lib/growth/indicators/load.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/growth/indicators/load.ex b/lib/growth/indicators/load.ex index b86af07..c8d6164 100644 --- a/lib/growth/indicators/load.ex +++ b/lib/growth/indicators/load.ex @@ -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),