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, }