casting to usable dict

master
Steve Nyemba 10 months ago
parent d2944b2c4b
commit f0a8349aa7

@ -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]

Loading…
Cancel
Save