Skip to content

Commit

Permalink
manage_plan.py
Browse files Browse the repository at this point in the history
  • Loading branch information
WSL0809 committed Apr 12, 2024
1 parent b37ad4b commit d0ba31e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/manage_plan.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,11 @@ def get_plans_in_db(db, plan_category):
get_plans_sql = ''
if plan_category == "meal_plan":
get_plans_sql = text(
"SELECT meal_plan_id, details, duration FROM meal_plan"
"SELECT meal_plan_id AS id, details, duration FROM meal_plan"
)
elif plan_category == "recovery_plan":
get_plans_sql = text(
"SELECT recovery_plan_id, details, duration FROM recovery_plan"
"SELECT recovery_plan_id AS id, details, duration FROM recovery_plan"
)

try:
Expand Down

0 comments on commit d0ba31e

Please sign in to comment.