From 380fd4e175a79f93f5009b742027d42aae364f84 Mon Sep 17 00:00:00 2001 From: Audionut Date: Sun, 24 Nov 2024 18:35:40 +1000 Subject: [PATCH] Progress queue counter only if queue --- upload.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/upload.py b/upload.py index 6e76fd8c..fa638865 100644 --- a/upload.py +++ b/upload.py @@ -693,11 +693,9 @@ async def check_mod_q_and_draft(tracker_class, meta, debug, disctype): except Exception: console.print(traceback.print_exc()) - # Update progress tracking - processed_files_count += 1 - console.print(f"[cyan]Processed {processed_files_count}/{total_files} files.") - # Add file to processed log - if 'queue' in meta: + if meta.get('queue') is not None: + processed_files_count += 1 + console.print(f"[cyan]Processed {processed_files_count}/{total_files} files.") save_processed_file(log_file, path)