diff --git a/packages/application/catalog/admin_catalog.py b/packages/application/catalog/admin_catalog.py index f37dc3d27..2ca68a543 100644 --- a/packages/application/catalog/admin_catalog.py +++ b/packages/application/catalog/admin_catalog.py @@ -63,17 +63,13 @@ def get_membership_plans() -> list[dict[str, Any]]: session = SessionLocal() try: - rows = session.execute( - text( - """ + rows = session.execute(text(""" SELECT plan_key, name, description, monthly_price, yearly_price, quotas, display_order FROM plans WHERE is_enabled = TRUE ORDER BY display_order NULLS LAST, created_at - """ - ) - ).fetchall() + """)).fetchall() finally: session.close() @@ -124,17 +120,13 @@ def get_points_packages() -> list[dict[str, Any]]: session = SessionLocal() try: - rows = session.execute( - text( - """ + rows = session.execute(text(""" SELECT package_key, name, price, credits, bonus_credits, is_recommended, description, sort_order FROM credit_packages WHERE is_active = TRUE ORDER BY sort_order NULLS LAST, price - """ - ) - ).fetchall() + """)).fetchall() finally: session.close()