From f830b42a3600519393341c6e720ae4612cbad75a Mon Sep 17 00:00:00 2001 From: I-Al-Istannen Date: Wed, 4 Nov 2020 21:49:35 +0100 Subject: [PATCH] Fix duplicate files in download summary --- PFERD/download_summary.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/PFERD/download_summary.py b/PFERD/download_summary.py index 28d51b5..c8135de 100644 --- a/PFERD/download_summary.py +++ b/PFERD/download_summary.py @@ -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: """