www/includes/db_recipes.php

changeset 147
e6e5d007eb54
parent 143
122f64716161
child 148
c0f0bbfefd63
--- a/www/includes/db_recipes.php	Mon Dec 17 13:46:15 2018 +0100
+++ b/www/includes/db_recipes.php	Mon Dec 17 22:24:32 2018 +0100
@@ -59,9 +59,15 @@
 	$sql .= "', color_method='" . $_POST['color_method'];
 	$sql .= "', est_ibu='" . $_POST['est_ibu'];
 	$sql .= "', ibu_method='" . $_POST['ibu_method'];
-	$sql .= "', mash_sparge_temp='" . $_POST['mash_sparge_temp'];
+	$sql .= "', sparge_temp='" . $_POST['sparge_temp'];
+	$sql .= "', sparge_ph='" . $_POST['sparge_ph'];
+	$sql .= "', sparge_volume='" . $_POST['sparge_volume'];
+	$sql .= "', sparge_acid_type='" . $_POST['sparge_acid_type'];
+	$sql .= "', sparge_acid_perc='" . $_POST['sparge_acid_perc'];
+	$sql .= "', sparge_acid_amount='" . $_POST['sparge_acid_amount'];
 	$sql .= "', mash_ph='" . $_POST['mash_ph'];
 	$sql .= "', mash_name='" . $_POST['mash_name'];
+	$sql .= "', calc_acid='" . $_POST['calc_acid'];
 	syslog(LOG_NOTICE, $sql);
 
 	if (isset($_POST['fermentables'])) {
@@ -213,10 +219,16 @@
 		$recipes .= ',"color_method":"' . $row['color_method'];
 		$recipes .= '","est_ibu":' . floatval($row['est_ibu']);
 		$recipes .= ',"ibu_method":"' . $row['ibu_method'];
-		$recipes .= '","mash_sparge_temp":' . $row['mash_sparge_temp'];
+		$recipes .= '","sparge_temp":' . $row['sparge_temp'];
+		$recipes .= ',"sparge_ph":' . $row['sparge_ph'];
+		$recipes .= ',"sparge_volume":' . $row['sparge_volume'];
+		$recipes .= ',"sparge_acid_type":"' . $row['sparge_acid_type'];
+		$recipes .= '","sparge_acid_perc":' . $row['sparge_acid_perc'];
+		$recipes .= ',"sparge_acid_amount":' . $row['sparge_acid_amount'];
 		$recipes .= ',"mash_ph":' . $row['mash_ph'];
 		$recipes .= ',"mash_name":"' . $row['mash_name'];
-		$recipes .= '","fermentables":' . $row['json_fermentables'];
+		$recipes .= '","calc_acid":' . $row['calc_acid'];
+		$recipes .= ',"fermentables":' . $row['json_fermentables'];
 		$recipes .= ',"hops":' . $row['json_hops'];
 		$recipes .= ',"miscs":' . $row['json_miscs'];
 		$recipes .= ',"yeasts":' . $row['json_yeasts'];

mercurial