fix(parse): now parser let entry values with comma

This commit is contained in:
doryan 2024-08-17 21:36:34 +04:00
parent cff06ea8b0
commit 1aa393345b

View File

@ -27,7 +27,8 @@ pub fn parse_fields(all_inputs: Vec<Input<Entry>>) -> Result<SignalReduce> {
for (i, input) in all_inputs.iter().enumerate() {
let input_text_buffer = input.get_input();
let extracted_value = f64::from_str(input_text_buffer.text().as_str().trim())?;
let extracted_value =
f64::from_str(input_text_buffer.text().replace(',', ".").as_str().trim())?;
values[i] = extracted_value;
}