Skip to content

Commit

Permalink
Update alternative_views.py
Browse files Browse the repository at this point in the history
  • Loading branch information
DonnieBLT authored Jan 6, 2024
1 parent 9db8eab commit 4940a13
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion website/alternative_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ def flag_issue2(request, issue_pk):
issue = Issue.objects.get(pk=issue_pk)
userprof = UserProfile.objects.get(user=request.user)
if userprof in UserProfile.objects.filter(issue_flaged=issue):
print("already flagged")
userprof.issue_flaged.remove(issue)
else:
userprof.issue_flaged.add(issue)
Expand Down

0 comments on commit 4940a13

Please sign in to comment.