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:
|
for attr in BROR_ATTRIBUTE_FELDER:
|
||||||
try:
|
try:
|
||||||
val = first_feat.attribute(attr)
|
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:
|
except Exception:
|
||||||
attrs.append("")
|
attrs.append("")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user