Skip to content

Commit

Permalink
sqlite: __delitem__: use 0 instead of False
Browse files Browse the repository at this point in the history
Leftover from #8
  • Loading branch information
efiop authored Apr 6, 2023
1 parent 2607f20 commit cff6cdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sqltrie/sqlite/sqlite.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ def __delitem__(self, key):
node = self._get_node(key)
self._conn.execute(
"""
UPDATE nodes SET has_value = False, value = NULL WHERE id == ?
UPDATE nodes SET has_value = 0, value = NULL WHERE id == ?
""",
(node["id"],),
)
Expand Down

0 comments on commit cff6cdf

Please sign in to comment.