27 lines
753 B
Python
27 lines
753 B
Python
#!/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') |