Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
WSL0809 committed Mar 28, 2024
1 parent 26f467e commit ef8cc72
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions api/get_all_rooms.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ class GetAllRoomsResp(BaseModel):
meal_plan_seller: Union[Dict, str, None]
recovery_plan_seller: Union[Dict, str, None]
maintenance_list: Union[dict, None]
scheduled_date: Union[str, None]
check_in_date: Union[str, None]

@router.get("/get_all_rooms")
def get_all_room_info(current_user: User = Depends(get_current_active_user), db: Session = Depends(get_db)):
Expand All @@ -40,6 +42,8 @@ def get_all_room_info(current_user: User = Depends(get_current_active_user), db:
client.name AS name,
client.meal_plan_seller AS meal_plan_seller,
client.recovery_plan_seller AS recovery_plan_seller,
client.scheduled_date AS scheduled_date,
client.check_in_date AS check_in_date,
baby_nurse.name AS baby_nurse_name,
meal_plan.details AS meal_plan_details,
meal_plan.duration AS meal_plan_duration,
Expand Down
4 changes: 3 additions & 1 deletion api/reserve.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import json

from datetime import datetime
from typing import Optional, Union, Any, Dict

from fastapi import APIRouter, Depends, HTTPException
Expand All @@ -25,7 +27,7 @@ class ReserveRecv(BaseModel):
tel: str
age: int
scheduled_date: str
check_in_date: str
check_in_date: Union[str, None] = None
hospital_for_childbirth: str
contact_name: str
contact_tel: str
Expand Down

0 comments on commit ef8cc72

Please sign in to comment.