Remove useless print

This commit is contained in:
Guille 2024-06-22 16:59:23 +02:00
parent 8d74dffc23
commit 0fb50feebb

View File

@ -100,7 +100,6 @@ exports.run = async (application, param, tmp_path) => {
for (var scenario in results.results) {
var value = results.results[scenario];
value.forEach(building_info => {
console.log(building_info)
const base_line = `"${scenario}";"${building_info.building}";${building_info.total_heating_area};${building_info.year_of_construction};${building_info.function}`
let meb = `${base_line}`
building_info['insel meb'].yearly_cooling_demand.forEach(element => meb = `${meb};${element}`)
@ -189,7 +188,7 @@ exports.run = async (application, param, tmp_path) => {
`${operational_co2_header}\n${operational_co2_lines.join('\n')}`,
function (err) { console.log(err ? err : 'operational_co2 saved') }
)
BrowserWindow.fromId(1).webContents.send('task-completed', `<a href="${tmp_path}/retrofit_meb.csv">meb</a><br /><a href="${tmp_path}/retrofit_cost.csv">costs</a><br /><a href="${tmp_path}/retrofit_operational_co2.csv">operational_co2</a>`)
BrowserWindow.fromId(1).webContents.send('task-completed', `<h3>${meb_lines.length} results returned</h3><br /> <a href="${tmp_path}/retrofit_meb.csv">meb</a><br /><a href="${tmp_path}/retrofit_cost.csv">costs</a><br /><a href="${tmp_path}/retrofit_operational_co2.csv">operational_co2</a>`)
}
else {
console.log('unautorized retrofit')