From 919642a1899f73a046afb0e389e1c02ba9b85af2 Mon Sep 17 00:00:00 2001 From: clawd Date: Fri, 20 Feb 2026 11:18:13 +0000 Subject: [PATCH] =?UTF-8?q?v0.4.5=20=E2=80=94=20Alle=20Buttons=20und=20Fun?= =?UTF-8?q?ktionen=20verdrahtet?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - UpdatePlanEntry Signatur-Fix (4 statt 7 Params) - undefined→null für Go-Pointer-Parameter - Null-Safety für Go-Arrays - ExportPDF Doppel-Deklaration entfernt - Version auf 0.4.5 --- app.go | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/app.go b/app.go index 94d6131..83bc8a4 100644 --- a/app.go +++ b/app.go @@ -376,17 +376,6 @@ func (a *App) DownloadUpdate() (string, error) { // PDF EXPORT // ExportPDF erstellt eine PDF-Datei des Wochenplans -func (a *App) ExportPDF(weekPlanID int, outputPath string) (string, error) { - // PDF-Export ist ein Platzhalter — in einer späteren Version wird hier - // eine richtige PDF-Bibliothek (z.B. gofpdf) verwendet. - // Vorerst geben wir eine Nachricht zurück. - plan, err := a.getWeekPlanByID(weekPlanID) - if err != nil { - return "", fmt.Errorf("Wochenplan nicht gefunden: %w", err) - } - return fmt.Sprintf("PDF-Export für KW %d/%d wird in einer zukünftigen Version unterstützt. Bitte nutzen Sie die Druckvorschau.", plan.Week, plan.Year), nil -} - // getWeekPlanByID lädt einen Wochenplan anhand seiner ID func (a *App) getWeekPlanByID(id int) (*WeekPlan, error) { var plan WeekPlan