Add international pricing table

This commit is contained in:
Chris Hill-Scott
2017-07-28 14:58:47 +01:00
parent a1880bddda
commit 10b87e433b
2 changed files with 19 additions and 1 deletions

View File

@@ -35,7 +35,10 @@ def pricing():
return render_template(
'views/pricing.html',
sms_rate=0.0158,
international_sms_rates=INTERNATIONAL_BILLING_RATES,
international_sms_rates=sorted([
(cc, country['names'], country['billable_units'])
for cc, country in INTERNATIONAL_BILLING_RATES.items()
], key=lambda x: x[0])
)