sqlite storage fix

- typo on cleaning
This commit is contained in:
Peter Šurda 2017-11-14 23:20:15 +01:00
parent 89567cecfa
commit d2f79d3172
Signed by untrusted user: PeterSurda
GPG Key ID: 0C5F50C0B5F37D87

View File

@ -75,6 +75,6 @@ class SqliteInventory(InventoryStorage):
with self.lock:
sqlExecute('DELETE FROM inventory WHERE expirestime<?',int(time.time()) - (60 * 60 * 3))
self._streams.clear()
for objectHash, value in self.items():
for objectHash, value in self._inventory.items():
self._streams[value.stream].add(objectHash)