Skip to content

Commit

Permalink
Remove archived leaderboard exception
Browse files Browse the repository at this point in the history
  • Loading branch information
Syriiin committed Jun 1, 2024
1 parent b11f571 commit 8c61b47
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions leaderboards/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,6 @@ def update_membership(leaderboard: Leaderboard, user_id: int):
"""
Creates or updates a membership for a given user on a given leaderboard
"""
if leaderboard.archived:
raise ValueError("Cannot update membership on an archived leaderboard")

try:
membership = leaderboard.memberships.select_for_update().get(user_id=user_id)
except Membership.DoesNotExist:
Expand Down

0 comments on commit 8c61b47

Please sign in to comment.