From 0b6f3ae129651f7205573d31fd5629cd1388c2b3 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Thu, 21 Jul 2022 13:48:34 +0100 Subject: [PATCH] Reformat plan helper --- core/lib/products.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/core/lib/products.py b/core/lib/products.py index ed38932..f087f8c 100644 --- a/core/lib/products.py +++ b/core/lib/products.py @@ -1,5 +1,6 @@ from core.models import Plan + def assemble_plan_map(product_id_filter=None): """ Get all the plans from the database and create an object Stripe wants. @@ -9,8 +10,10 @@ def assemble_plan_map(product_id_filter=None): if product_id_filter: if plan.product_id != product_id_filter: continue - line_items.append({ - "price": plan.product_id, - "quantity": 1, - }) - return line_items \ No newline at end of file + line_items.append( + { + "price": plan.product_id, + "quantity": 1, + } + ) + return line_items