Sort scheduled jobs so soonest is first

The scheduled job you probably care about the most is the soonest –
irrespective of when you scheduled it.
This commit is contained in:
Chris Hill-Scott
2016-08-31 16:50:45 +01:00
parent 72f92b5249
commit 6921d8b59e
3 changed files with 8 additions and 4 deletions

View File

@@ -902,7 +902,8 @@ def mock_get_jobs(mocker, api_user_active):
("all email addresses.xlsx", '', 'pending'),
("applicants.ods", '', ''),
("thisisatest.csv", '', ''),
("send_me_later.csv", '2016-01-01 11:09:00.061258', 'scheduled')
("send_me_later.csv", '2016-01-01 11:09:00.061258', 'scheduled'),
("even_later.csv", '2016-01-01 23:09:00.061258', 'scheduled')
)
]}