From db14d6070a284819241e9992b2526bba858d7fc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=20Tr=C3=B6ger?= Date: Sun, 30 Nov 2025 19:59:22 +0100 Subject: [PATCH] reverted format duration change --- .gitea/workflows/test.yaml | 2 +- Backend/helper/time.go | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.gitea/workflows/test.yaml b/.gitea/workflows/test.yaml index 9589818..80c1004 100644 --- a/.gitea/workflows/test.yaml +++ b/.gitea/workflows/test.yaml @@ -47,7 +47,7 @@ jobs: restore-keys: |- arbeitszeitmessung- - name: Run Go Tests - run: cd Backend && mkdir .test && go test ./... + run: cd Backend && mkdir .test && go test ./... -coverprofile=.test/coverage.out -json > .test/report.json - name: Verify coverage report exists run: | if [ -f "Backend/.test/coverage.out" ]; then diff --git a/Backend/helper/time.go b/Backend/helper/time.go index f55a92c..30198fc 100644 --- a/Backend/helper/time.go +++ b/Backend/helper/time.go @@ -31,7 +31,6 @@ func FormatDuration(d time.Duration) string { // Converts duration to string func FormatDurationFill(d time.Duration, fill bool) string { - return fmt.Sprintf("%.1f", d.Hours()) hours := int(d.Abs().Hours()) minutes := int(d.Abs().Minutes()) % 60 sign := ""