mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-06 22:58:25 -04:00
notify-api-412 use black to enforce python coding style
This commit is contained in:
@@ -7,43 +7,46 @@ from app.main.forms import SearchByNameForm
|
||||
from app.main.views.sub_navigation_dictionaries import using_notify_nav
|
||||
from app.utils.user import user_is_logged_in
|
||||
|
||||
CURRENT_SMS_RATE = '1.72'
|
||||
CURRENT_SMS_RATE = "1.72"
|
||||
|
||||
|
||||
@main.route('/using-notify/pricing')
|
||||
@main.route("/using-notify/pricing")
|
||||
@user_is_logged_in
|
||||
def pricing():
|
||||
return render_template(
|
||||
'views/pricing/index.html',
|
||||
"views/pricing/index.html",
|
||||
sms_rate=CURRENT_SMS_RATE,
|
||||
international_sms_rates=sorted([
|
||||
(cc, country['names'], country['billable_units'])
|
||||
for cc, country in INTERNATIONAL_BILLING_RATES.items()
|
||||
], key=lambda x: x[0]),
|
||||
international_sms_rates=sorted(
|
||||
[
|
||||
(cc, country["names"], country["billable_units"])
|
||||
for cc, country in INTERNATIONAL_BILLING_RATES.items()
|
||||
],
|
||||
key=lambda x: x[0],
|
||||
),
|
||||
search_form=SearchByNameForm(),
|
||||
navigation_links=using_notify_nav(),
|
||||
)
|
||||
|
||||
|
||||
@main.route('/pricing/how-to-pay')
|
||||
@main.route("/pricing/how-to-pay")
|
||||
@user_is_logged_in
|
||||
def how_to_pay():
|
||||
return render_template(
|
||||
'views/pricing/how-to-pay.html',
|
||||
"views/pricing/how-to-pay.html",
|
||||
navigation_links=using_notify_nav(),
|
||||
)
|
||||
|
||||
|
||||
@main.route('/pricing/billing-details')
|
||||
@main.route("/pricing/billing-details")
|
||||
@user_is_logged_in
|
||||
def billing_details():
|
||||
if current_user.is_authenticated:
|
||||
return render_template(
|
||||
'views/pricing/billing-details.html',
|
||||
billing_details=current_app.config['NOTIFY_BILLING_DETAILS'],
|
||||
"views/pricing/billing-details.html",
|
||||
billing_details=current_app.config["NOTIFY_BILLING_DETAILS"],
|
||||
navigation_links=using_notify_nav(),
|
||||
)
|
||||
return render_template(
|
||||
'views/pricing/billing-details-signed-out.html',
|
||||
"views/pricing/billing-details-signed-out.html",
|
||||
navigation_links=using_notify_nav(),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user