Skip to content

Commit

Permalink
insert_client.py
Browse files Browse the repository at this point in the history
  • Loading branch information
WSL0809 committed Apr 10, 2024
1 parent 36bd112 commit 8e987a7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/get_all_rooms.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ class GetAllRoomsResp(BaseModel):
maintenance_list: Union[dict, None]
scheduled_date: Union[str, None]
check_in_date: Union[str, None]
due_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 @@ -44,6 +45,7 @@ def get_all_room_info(current_user: User = Depends(get_current_active_user), db:
client.recovery_plan_seller AS recovery_plan_seller,
client.scheduled_date AS scheduled_date,
client.check_in_date AS check_in_date,
client.due_date AS due_date,
baby_nurse.name AS baby_nurse_name,
meal_plan.details AS meal_plan_details,
meal_plan.duration AS meal_plan_duration,
Expand Down
2 changes: 2 additions & 0 deletions start.sh
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
source .venv/bin/activate
nohup uvicorn main:app --host 0.0.0.0 --port 8000 > output.log 2>&1 &
ps -ef|grep uvicorn

0 comments on commit 8e987a7

Please sign in to comment.