Skip to content

Commit

Permalink
feat: sarabwayu mvp 제작 완료
Browse files Browse the repository at this point in the history
  • Loading branch information
taewan2002 committed Feb 16, 2024
1 parent 3778913 commit 9cb6a41
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ SERVER_TYPE=local
ROOT_PATH=
DB_URL=localhost
REDIS_URL=localhost
HOUSE_REC_URL=https://sarabwayu7.hackathon.sparcs.net/
HOUSE_REC_URL=https://sarabwayu8.hackathon.sparcs.net/
2 changes: 1 addition & 1 deletion .env-prod
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ SERVER_TYPE=prod
ROOT_PATH=/api
DB_URL=172.18.0.2
REDIS_URL=172.18.0.3
HOUSE_REC_URL=https://sarabwayu7.hackathon.sparcs.net/
HOUSE_REC_URL=https://sarabwayu8.hackathon.sparcs.net/
3 changes: 2 additions & 1 deletion app/service/house.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,8 @@ async def detail(self, house_id: int) -> dict:
"walkTime": house.walkTime,
"studentCountPerTeacher": house.studentCountPerTeacher,
"is_like": is_like,
"image_url": house.image_url
"image_url": house.image_url,
"url": house.url
}

await self.redis.set(f"house:{self.user.id}:{house_id}", json.dumps(house, ensure_ascii=False) , ex=3600)
Expand Down
Binary file modified dump.rdb
Binary file not shown.

0 comments on commit 9cb6a41

Please sign in to comment.