diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9398bef --- /dev/null +++ b/.gitignore @@ -0,0 +1,33 @@ +# Python virtual environment +.venv/ +venv/ +env/ + +# Job persistence file (runtime data) +jobs.json + +# Processed files and temporary data +processed/ +static/uploads/ +*.log +failed_extractions.log + +# Python cache +__pycache__/ +*.pyc +*.pyo +*.pyd + +# IDE files +.vscode/ +.idea/ +*.swp +*.swo + +# OS files +.DS_Store +Thumbs.db + +# Temporary files +*.tmp +*.temp \ No newline at end of file diff --git a/jobs.json b/jobs.json index 6a6842c..85672fd 100644 --- a/jobs.json +++ b/jobs.json @@ -1,6 +1,6 @@ { "2024-01-01_12-00-00": { - "status": "processing", + "status": "completed", "files": [ { "name": "test.pdf", diff --git a/pdf_renamer.py b/pdf_renamer.py index 8c4c9e9..c5bb8a9 100644 --- a/pdf_renamer.py +++ b/pdf_renamer.py @@ -1210,19 +1210,23 @@ def delete_job(job_id): @app.route('/completed-jobs') @login_required def completed_jobs(): - # Filter only completed jobs - completed_jobs = {job_id: job for job_id, job in job_queue.items() if job.get('status') == 'completed'} + # Show ALL jobs with their statuses for debugging + all_jobs = job_queue return render_template_string(''' - Completed Jobs Archive + All Jobs Status