Skip to content

Commit

Permalink
Update web.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rassie committed Aug 5, 2024
1 parent 1628a43 commit 7566871
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rq_dashboard/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ def get_queue_registry_jobs_count(queue_name, registry_name, offset, per_page, o
job_ids.reverse()

current_queue_jobs = [queue.fetch_job(job_id) for job_id in job_ids]
jobs = [serialize_job(job) for job in current_queue_jobs if job]
jobs = [serialize_job(job) for job in current_queue_jobs if job is not None]

return (total_items, jobs)

Expand Down Expand Up @@ -662,4 +662,4 @@ def serialize_queue_names(worker):
@blueprint.context_processor
def inject_interval():
interval = current_app.config.get("RQ_DASHBOARD_POLL_INTERVAL", 2500)
return dict(poll_interval=interval)
return dict(poll_interval=interval)

0 comments on commit 7566871

Please sign in to comment.