Skip to content

Commit eec4b20

Browse files
committed
Fixed bug
1 parent a028889 commit eec4b20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/PyMatcha/routes/api/profile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ def view_profile(uid):
211211
except NotFoundError:
212212
raise NotFoundError(f"User {uid} not found", "try again")
213213

214-
if current_user.id == u.id:
214+
if current_user.id != u.id:
215215
View.create(profile_id=u.id, viewer_id=current_user.id)
216216

217217
return SuccessOutput("profile", u.get_all_info())

0 commit comments

Comments
 (0)