Tidy up text on forgot your password screens

Display updated_at instead of created_at for notifications.
This commit is contained in:
Henry Hadlow
2016-05-10 11:36:49 +01:00
committed by Nicholas Staples
parent 9232ab51d5
commit e3fa1ac253
10 changed files with 22 additions and 16 deletions

View File

@@ -138,6 +138,7 @@ def notification_json(service_id,
status='sent',
sent_at=None,
created_at=None,
updated_at=None,
with_links=False):
if job is None:
job = job_json()
@@ -147,6 +148,8 @@ def notification_json(service_id,
sent_at = str(datetime.datetime.utcnow().time())
if created_at is None:
created_at = str(datetime.datetime.utcnow().time())
if updated_at is None:
updated_at = str((datetime.datetime.utcnow() + datetime.timedelta(minutes=1)).time())
links = {}
if with_links:
links = {
@@ -164,7 +167,8 @@ def notification_json(service_id,
'job': {'id': job['id'], 'original_file_name': job['original_file_name']},
'sent_at': sent_at,
'status': status,
'created_at': created_at
'created_at': created_at,
'updated_at': updated_at
} for i in range(5)],
'total': 5,
'page_size': 50,