Fix duplicate files in download summary

This commit is contained in:
I-Al-Istannen 2020-11-04 21:49:35 +01:00
parent ef343dec7c
commit f830b42a36

View File

@ -40,9 +40,9 @@ class DownloadSummary:
"""
Merges ourselves with the passed summary. Modifies this object, but not the passed one.
"""
self._new_files += summary.new_files
self._modified_files += summary.modified_files
self._deleted_files += summary.deleted_files
self._new_files = list(set(self._new_files + summary.new_files))
self._modified_files = list(set(self._modified_files + summary.modified_files))
self._deleted_files = list(set(self._deleted_files + summary.deleted_files))
def add_deleted_file(self, path: Path) -> None:
"""