From d2249da232599eb1356b26ef6bf545929987f47d Mon Sep 17 00:00:00 2001 From: Katie Harrington Date: Tue, 5 Sep 2023 15:27:12 +0000 Subject: [PATCH] get copy logic to match --- socs/db/suprsync.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/socs/db/suprsync.py b/socs/db/suprsync.py index 86927b773..fb0f7db7b 100644 --- a/socs/db/suprsync.py +++ b/socs/db/suprsync.py @@ -244,7 +244,7 @@ def get_archive_stats(self, archive_name, session=None): stats = { 'finalized_until': finalized_until, 'num_files': len(files), - 'uncopied_files': len([f for f in files if f.copied is None]), + 'uncopied_files': num_files_to_copy, 'last_file_added': last_file_added, 'last_file_copied': last_file_copied, }