1
0
Fork 0
mirror of https://github.com/borgbase/vorta synced 2024-12-22 15:57:34 +00:00

Deal with new archive_progress key (#1353)

This commit is contained in:
Manuel Riel 2022-06-08 19:22:05 +04:00 committed by GitHub
parent 091c0dcacd
commit 170ff954ff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -259,7 +259,7 @@ def read_async(fd):
elif parsed['type'] == 'file_status': elif parsed['type'] == 'file_status':
self.app.backup_log_event.emit(f'{parsed["path"]} ({parsed["status"]})', {}) self.app.backup_log_event.emit(f'{parsed["path"]} ({parsed["status"]})', {})
elif parsed['type'] == 'archive_progress': elif parsed['type'] == 'archive_progress' and not parsed.get('finished', False):
msg = ( msg = (
f"{translate('BorgJob','Files')}: {parsed['nfiles']}, " f"{translate('BorgJob','Files')}: {parsed['nfiles']}, "
f"{translate('BorgJob','Original')}: {pretty_bytes(parsed['original_size'])}, " f"{translate('BorgJob','Original')}: {pretty_bytes(parsed['original_size'])}, "