Skip to content

Commit

Permalink
fix: 임시 유저 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
ybkang1108 committed Aug 13, 2024
1 parent 6e55a4e commit efc9d83
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions friends/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ def friends(request):
# friends_list
if request.method == "GET":
try:
# user = request.user
user = User.objects.get(id=21)
user = request.user

friend_request = FriendRequest.objects.filter(to_user=user, state="pending")
friend_request_serialized = FriendRequestSerializer(
Expand Down Expand Up @@ -271,8 +270,7 @@ def friends(request):
@api_view(["GET"])
def friend_recommend(request):
try:
# user = request.user
user = User.objects.get(id=21)
user = request.user

user_restaurants = set(
UserRestaurantsList.objects.filter(user=user).values_list(
Expand Down

0 comments on commit efc9d83

Please sign in to comment.