formatting fixes
This commit is contained in:
@@ -35,9 +35,7 @@ def create_sleep(
|
||||
raise HTTPException(status_code=404, detail="Child not found")
|
||||
|
||||
if child["user_id"] != user_id:
|
||||
raise HTTPException(
|
||||
status_code=403, detail="Access denied to this child"
|
||||
)
|
||||
raise HTTPException(status_code=403, detail="Access denied to this child")
|
||||
|
||||
sleep = sleep_repo.create(
|
||||
child_id=request.child_id,
|
||||
@@ -125,9 +123,7 @@ def update_sleep(
|
||||
)
|
||||
|
||||
if not updated:
|
||||
raise HTTPException(
|
||||
status_code=500, detail="Failed to update sleep log"
|
||||
)
|
||||
raise HTTPException(status_code=500, detail="Failed to update sleep log")
|
||||
|
||||
return SleepResponse(**updated)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user