Use default attribute value of None when attributes are missing

This commit is contained in:
XANTRONIX Development 2024-12-04 17:22:33 -05:00
parent f128cb3d04
commit 9ea8306806

View file

@ -104,7 +104,7 @@ class Database():
for column in table.columns:
if column != table.key:
values.append(getattr(obj, column))
values.append(getattr(obj, column, None))
cr = self.db.execute(sql, values)