Fix broken Dataset finalize

This commit is contained in:
allegroai 2021-10-04 23:38:29 +03:00
parent 00efe33896
commit c2f49547d8

View File

@ -1511,7 +1511,7 @@ class Dataset(object):
# self._dependency_graph.keys())
# return dict(chunks_lookup)
chunks_lookup = map(
lambda d: (d, Dataset.get(dataset_id=d).get_num_chunks()),
lambda d: (d, (self if d == self.id else Dataset.get(dataset_id=d)).get_num_chunks(include_parents=False)),
self._dependency_graph.keys())
return dict(chunks_lookup)