mirror of
https://github.com/Garmelon/PFERD.git
synced 2023-12-21 10:23:01 +01:00
Fix duplicate files in download summary
This commit is contained in:
parent
ef343dec7c
commit
f830b42a36
@ -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:
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user