Backwards-compatible fix for minidb
This commit is contained in:
parent
fd8f6521ad
commit
5b618d55c3
|
@ -88,7 +88,7 @@ class Store(object):
|
|||
table, slots = self._schema(o.__class__)
|
||||
|
||||
# Only save values that have values set (non-None values)
|
||||
slots = [s for s in slots if getattr(o, s) is not None]
|
||||
slots = [s for s in slots if getattr(o, s, None) is not None]
|
||||
|
||||
values = [str(getattr(o, slot)) for slot in slots]
|
||||
self.db.execute('INSERT INTO %s (%s) VALUES (%s)' % (table,
|
||||
|
|
Loading…
Reference in a new issue