mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-04 21:51:43 -04:00
Fix all jobs being shown on the dashboard
The dashboard was showing the 50 most recent jobs, not the 50 most recent in the last 7 days.
This commit is contained in:
@@ -128,7 +128,7 @@ def get_dashboard_partials(service_id):
|
||||
)
|
||||
immediate_jobs = [
|
||||
add_rate_to_job(job)
|
||||
for job in job_api_client.get_jobs(service_id, statuses=statuses_to_display)['data']
|
||||
for job in job_api_client.get_jobs(service_id, limit_days=7, statuses=statuses_to_display)['data']
|
||||
if job['original_file_name'] != current_app.config['TEST_MESSAGE_FILENAME']
|
||||
]
|
||||
service = service_api_client.get_detailed_service(service_id)
|
||||
|
||||
Reference in New Issue
Block a user