Comma-format number when emailing live services

250,000 is easier to read than 250000.
This commit is contained in:
Chris Hill-Scott
2017-05-16 12:33:01 +01:00
parent 0f0afab372
commit 2d4f10bd22
2 changed files with 10 additions and 2 deletions

View File

@@ -132,7 +132,7 @@ def update_service(service_id):
template_id=current_app.config['SERVICE_NOW_LIVE_TEMPLATE_ID'],
personalisation={
'service_name': current_data['name'],
'message_limit': current_data['message_limit']
'message_limit': '{:,}'.format(current_data['message_limit'])
},
include_user_fields=['name']
)