Add last updated column (formatted) in view providers table

This commit is contained in:
Imdad Ahad
2017-01-17 15:21:05 +00:00
parent dfc751ef02
commit ac3467c1b5
3 changed files with 27 additions and 13 deletions

View File

@@ -18,7 +18,11 @@ def view_providers():
providers = provider_client.get_all_providers()['provider_details']
email_providers = [email for email in providers if email['notification_type'] == 'email']
sms_providers = [sms for sms in providers if sms['notification_type'] == 'sms']
return render_template('views/providers.html', email_providers=email_providers, sms_providers=sms_providers)
return render_template(
'views/providers.html',
email_providers=email_providers,
sms_providers=sms_providers
)
@main.route("/provider/<provider_id>", methods=['GET', 'POST'])