Skip to content

Commit

Permalink
Merge pull request #58 from Gamja-dori/hanby
Browse files Browse the repository at this point in the history
feat: add score, view, updated_at to recommend
  • Loading branch information
hanby-choi authored May 30, 2024
2 parents 803caae + 7c674ed commit 794d9c0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dasi/recommend/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ def get(self, request):
"name": senior_user.name,
"profile_image": "https://api.dasi-expert.com" + user.profile_image.url,
"review_avg": review_avg,
"score": (LIMIT - cnt),
"view": resume.view,
"updated_at": resume.updated_at,
})

return Response(
Expand Down Expand Up @@ -149,6 +152,9 @@ def create_search_result(self, data):
"name": senior_user.name,
"profile_image": "https://api.dasi-expert.com" + user.profile_image.url,
"review_avg": review_avg,
"score": comments[comments][0],
"view": resume.view,
"updated_at": resume.updated_at,
})

return Response(
Expand Down

0 comments on commit 794d9c0

Please sign in to comment.