Auto-generate the pricing table from the database

This commit is contained in:
3wc
2021-07-21 12:19:28 +02:00
parent 908d02803f
commit 7923f3a99f
3 changed files with 29 additions and 12 deletions

View File

@ -12,9 +12,11 @@ def index():
@bp.route("/pricing")
def pricing():
vm_sizes = get_model().vm_sizes_dict()
operating_systems = get_model().operating_systems_dict()
return render_template(
"pricing.html",
vm_sizes=vm_sizes,
operating_systems=operating_systems
)