From 5cbde7aee55e58cc90c6b7c6873a7122e9dbdd74 Mon Sep 17 00:00:00 2001 From: "John N. Milner" Date: Wed, 30 Oct 2024 11:58:08 -0400 Subject: [PATCH] Print counts of media files and versions at start (to give an idea of how long the task will take) --- transfer/asset.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/transfer/asset.py b/transfer/asset.py index 5d53edd..f20e7ab 100644 --- a/transfer/asset.py +++ b/transfer/asset.py @@ -87,7 +87,7 @@ def transfer_asset_media(config_src, config_dest, files): ''' if not files: return - + dest_headers = { **config_dest['headers'], 'Content-Type': 'application/x-www-form-urlencoded', @@ -123,8 +123,10 @@ def transfer_asset(config): config_dest = config.dest _, deployed_versions, files = get_src_asset_details(config_src=config_src) - print('💼 Transferring all form media files') + print(f'💼 Transferring all {len(files)} form media files') transfer_asset_media(config_src, config_dest, files) - print('📨 Transferring and deploying all versions') + print( + f'📨 Transferring and deploying all {len(deployed_versions)} versions' + ) deploy_all_versions(config_src, config_dest, deployed_versions) print(f'✨ All {len(deployed_versions)} versions deployed')