src/database/db_recipe.cpp

changeset 384
d68826df8b63
parent 374
74d541ac514c
child 519
1b9e887392aa
equal deleted inserted replaced
383:bd20f8710f45 384:d68826df8b63
218 yquery.bindValue(":origin", h.origin); 218 yquery.bindValue(":origin", h.origin);
219 yquery.exec(); 219 yquery.exec();
220 if (yquery.first()) { 220 if (yquery.first()) {
221 h.utilisation = yquery.value("utilisation").toDouble(); 221 h.utilisation = yquery.value("utilisation").toDouble();
222 h.bu_factor = yquery.value("bu_factor").toDouble(); 222 h.bu_factor = yquery.value("bu_factor").toDouble();
223 } else {
224 h.utilisation = my_ut_pellet;
225 h.bu_factor = 1.0;
223 } 226 }
224 } 227 }
225 reci->hops.append(h); 228 reci->hops.append(h);
226 } 229 }
227 } 230 }

mercurial