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("")