From 59c7d89e816979dbe9d3ae3815865646b8492024 Mon Sep 17 00:00:00 2001 From: Florian Heinz Date: Tue, 19 May 2026 15:33:59 +0200 Subject: [PATCH] Recognize German Health walk workouts --- src/App.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/App.php b/src/App.php index d414355..e9807e0 100644 --- a/src/App.php +++ b/src/App.php @@ -974,8 +974,9 @@ final class App { $normalized = normalize_sport_type_id($name); - return in_array($normalized, ['walking', 'walk', 'outdoor-walk', 'indoor-walk'], true) - || str_contains($normalized, 'walking'); + return in_array($normalized, ['walking', 'walk', 'outdoor-walk', 'indoor-walk', 'spaziergang'], true) + || str_contains($normalized, 'walking') + || str_contains($normalized, 'spaziergang'); } private function healthSportTypeForWorkout(string $name, array &$settings): array @@ -1117,7 +1118,7 @@ final class App return $points; } - $step = max(1, (int) floor(count($points) / 180)); + $step = max(1, (int) ceil(count($points) / 180)); $reduced = []; foreach ($points as $index => $point) { if ($index % $step === 0) {