Fix typo introduced by code quality patch

This commit is contained in:
Peter Šurda 2017-06-24 23:09:08 +02:00
parent 189578cba3
commit aa203b23ee
Signed by: PeterSurda
GPG Key ID: 0C5F50C0B5F37D87

View File

@ -49,8 +49,8 @@ class SqliteInventory(InventoryStorage):
def by_type_and_tag(self, objectType, tag): def by_type_and_tag(self, objectType, tag):
with self.lock: with self.lock:
values = [value for value in self._inventory.values() if value.type == type and value.tag == tag] values = [value for value in self._inventory.values() if value.type == objectType and value.tag == tag]
values += (InventoryItem(*value) for value in sqlQuery('SELECT objecttype, streamnumber, payload, expirestime, tag FROM inventory WHERE objecttype=? AND tag=?', type, tag)) values += (InventoryItem(*value) for value in sqlQuery('SELECT objecttype, streamnumber, payload, expirestime, tag FROM inventory WHERE objecttype=? AND tag=?', objectType, tag))
return values return values
def hashes_by_stream(self, stream): def hashes_by_stream(self, stream):