From 7c833c7aa0b2df1628e05bd0d44bdca8739accf9 Mon Sep 17 00:00:00 2001 From: daniel Date: Fri, 22 May 2026 08:46:42 +0200 Subject: [PATCH] falsche Datumsangabe in Attributtagelle gefixt --- functions/verfahrensgebiet_alkis.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/functions/verfahrensgebiet_alkis.py b/functions/verfahrensgebiet_alkis.py index 3d2fa85..f187cfc 100644 --- a/functions/verfahrensgebiet_alkis.py +++ b/functions/verfahrensgebiet_alkis.py @@ -159,7 +159,13 @@ def verfahrensgebiet_alkis(tab_widget): for attr in BROR_ATTRIBUTE_FELDER: try: val = first_feat.attribute(attr) - attrs.append(str(val) if val is not None else "") + if val is None: + attrs.append("") + elif type(val).__name__ == "QDate": + # QDate-Objekte als DD.MM.YYYY formatieren + attrs.append(val.toString("dd.MM.yyyy")) + else: + attrs.append(str(val)) except Exception: attrs.append("")