Processing fix

This commit is contained in:
nmemmert committed 2025-11-07 09:33:25 -05:00
1 parent c98e89b5e4
commit 9a430e798f
6 files changed
+132 -24

No files matched your search

+27
View File
@@ -0,0 +1,27 @@
#!/usr/bin/env python3
"""
Create a test processing job to verify progress updates
"""
import json
from pdf_renamer import job_queue, save_jobs
# Create a test processing job
test_job = {
'status': 'processing',
'files': [{'name': 'test.pdf', 'path': '/tmp/test.pdf'}],
'zip_path': None,
'zip_name': None,
'processed_files': [],
'skipped': [],
'created_at': '2025-11-07 10:00:00',
'job_id': '2025-11-07_10-00-00',
'progress': 'Test progress - should update every second'
}
job_queue['2025-11-07_10-00-00'] = test_job
save_jobs()
print('Created test processing job with progress updates')
print('Job ID: 2025-11-07_10-00-00')
print('Status: processing')
print('Progress: Test progress - should update every second')