Skip to content

Commit

Permalink
Merge pull request #32 from tacaswell/fix_delitem_bug
Browse files Browse the repository at this point in the history
FIX: commit the query to delete keys
  • Loading branch information
jrmlhermitte authored Mar 10, 2018
2 parents ed65f28 + 309bc25 commit 35e3d3d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions historydict.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ def __delitem__(self, key):
del self._cache[key]
hk = hashlib.sha1(str(key).encode('utf-8')).hexdigest()
self._conn.execute(DELETE_ONE_QUERY, (hk,))
self._conn.commit()

def __len__(self):
return len(self._cache)
Expand Down

0 comments on commit 35e3d3d

Please sign in to comment.