diff -r 4d27a7fb1265 -r 6d94167c2697 www/import/from_brouwhulp.php --- a/www/import/from_brouwhulp.php Fri Aug 31 15:18:20 2018 +0200 +++ b/www/import/from_brouwhulp.php Sat Sep 01 22:24:09 2018 +0200 @@ -464,8 +464,11 @@ $sql .= "', est_og='" . floatval($recipe->EST_OG); if ($recipe->EST_FG) $sql .= "', est_fg='" . floatval($recipe->EST_FG); - if ($recipe->EST_COLOR) - $sql .= "', est_color='" . floatval($recipe->EST_COLOR); + if ($recipe->EST_COLOR) { + $srm = floatval($recipe->EST_COLOR); + $ebc = srm_to_ebc($srm); + $sql .= "', est_color='" . $ebc; + } if ($recipe->COLOR_METHOD) $sql .= "', color_method='" . mysqli_real_escape_string($db, $recipe->COLOR_METHOD); if ($recipe->IBU) @@ -718,7 +721,7 @@ } $mash .= '}'; - echo $mash . PHP_EOL; +// echo $mash . PHP_EOL; $sql .= "', json_mash='" . $mash; if (strlen($mash) > $len_mash) $len_mash = strlen($mash); @@ -745,7 +748,7 @@ //do_miscs(); //do_waters(); //do_equipments(); -//do_styles(); +do_styles(); //do_mash(); do_recipes();