Skip to content

Commit

Permalink
Progress queue counter only if queue
Browse files Browse the repository at this point in the history
  • Loading branch information
Audionut committed Nov 24, 2024
1 parent 73ad2a4 commit 380fd4e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down

0 comments on commit 380fd4e

Please sign in to comment.