falsche Datumsangabe in Attributtagelle gefixt
This commit is contained in:
@@ -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("")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user