From f0a8349aa78d43f1695250be32c9a291adf86f00 Mon Sep 17 00:00:00 2001 From: Steve Nyemba Date: Fri, 19 Jan 2024 17:11:40 -0600 Subject: [PATCH] casting to usable dict --- store/get/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/store/get/__init__.py b/store/get/__init__.py index 4d234a7..0e6485e 100644 --- a/store/get/__init__.py +++ b/store/get/__init__.py @@ -31,4 +31,5 @@ def plans(_name:str): """ _prod = product(_name) _id = _prod[0]['id'] - return stripe.Price.search(query=f"product:'{_id}'").data + _plans = stripe.Price.search(query=f"product:'{_id}'").data + return [_plan.to_dict() for _plan in _plans]