Skip to content

Commit

Permalink
sqla data fix for bool/numeric
Browse files Browse the repository at this point in the history
  • Loading branch information
divi255 committed Dec 30, 2019
1 parent e44efbc commit dbaab6e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions smartobject/storage.py
Expand Up @@ -307,6 +307,8 @@ def save(self, pk=None, data={}, modified={}, **kwargs):
with self.__lock:
db = self.get_db()
updates = [
'{}={}'.format(k, v) if isinstance(v, bool) or
isinstance(v, int) or isinstance(v, float) else
'{}="{}"'.format(k, self._safe_format(v))
for k, v in modified.items()
]
Expand Down

0 comments on commit dbaab6e

Please sign in to comment.