balancing
This commit is contained in:
parent
06236e881a
commit
b249665a9e
@ -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)) }
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user