Avoid another .keys() call
This commit is contained in:
parent
c83749311f
commit
dd7cb99ef4
|
@ -1913,7 +1913,7 @@ class Downloader(QueueMixin, WriteFileMixin):
|
||||||
def _filter_batch_to_deque(ign):
|
def _filter_batch_to_deque(ign):
|
||||||
ITEM_QUEUE.log(items=self._deque)
|
ITEM_QUEUE.log(items=self._deque)
|
||||||
SCAN_BATCH.log(batch=scan_batch)
|
SCAN_BATCH.log(batch=scan_batch)
|
||||||
for relpath_u in scan_batch.keys():
|
for relpath_u in scan_batch:
|
||||||
file_node, metadata = max(scan_batch[relpath_u], key=lambda x: x[1]['version'])
|
file_node, metadata = max(scan_batch[relpath_u], key=lambda x: x[1]['version'])
|
||||||
|
|
||||||
if self._should_download(relpath_u, metadata['version'], file_node.get_readonly_uri()):
|
if self._should_download(relpath_u, metadata['version'], file_node.get_readonly_uri()):
|
||||||
|
|
Loading…
Reference in New Issue