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)