From 2e4ec7b24e6f59b53db52354d6c8b4d6bf4b6a48 Mon Sep 17 00:00:00 2001 From: Timo Volkmann Date: Sun, 14 Jun 2020 01:32:21 +0200 Subject: [PATCH] balancing --- backend/app.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/backend/app.js b/backend/app.js index 6b83f4e..1321d14 100644 --- a/backend/app.js +++ b/backend/app.js @@ -10,7 +10,7 @@ const port = 3000 //const multiplier_temp = 5 const multiplier = { temperature_mean: 5, - percipitation: 0.5, + percipitation: 3.5, raindays: 3, sunhours: 2.5, } @@ -135,7 +135,13 @@ async function search(from, to, queries) { // TODO: calculate ratio - return transformer.transform(detailScores) + return { + results: transformer.transform(detailScores), + debug: { + detailScores: detailScores, + minMax: minMax + } + } // return { TODO___scores: detailScores } // return { TODO___scores: calculateAverageScore(detailScores, Object.keys(queries)) } }