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 } |