From 14e386a1229eaf8e8f546c0a84b324f124775436 Mon Sep 17 00:00:00 2001 From: Mischa Date: Fri, 19 Jun 2026 23:34:39 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20remove=201m=20per-step=20elevation=20thr?= =?UTF-8?q?eshold=20=E2=80=94=20Komoot=20data=20is=20pre-smoothed,=20thres?= =?UTF-8?q?hold=20filtered=20nearly=20all=20gain/loss?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/intotheeast/templates/trip.html.twig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/themes/intotheeast/templates/trip.html.twig b/themes/intotheeast/templates/trip.html.twig index d0c4493..8f12790 100644 --- a/themes/intotheeast/templates/trip.html.twig +++ b/themes/intotheeast/templates/trip.html.twig @@ -449,8 +449,8 @@ function parseGpxFiles(urls, callback) { if (!isNaN(p0.ele) && !isNaN(p1.ele)) { var dEle = p1.ele - p0.ele; - if (dEle > 1) totalEleGain += dEle - 1; - if (dEle < -1) totalEleLoss += (-dEle) - 1; + if (dEle > 0) totalEleGain += dEle; + if (dEle < 0) totalEleLoss += (-dEle); if (isNaN(globalHighest) || p1.ele > globalHighest) globalHighest = p1.ele; if (isNaN(globalLowest) || p1.ele < globalLowest) globalLowest = p1.ele; }