Skip to content

Commit

Permalink
Update membership fees
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasbedrich committed Nov 12, 2024
1 parent 4de4321 commit 64a6e55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cashier/models/membership.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ def from_str(cls, input_: str):
@classmethod
def from_amount(cls, amount: int):
"""Return membership type based on amounts agreed by the club board."""
if amount in (100, 150):
if amount in (120, 180):
return cls.daily
if amount == 500:
if amount == 600:
return cls.yearly
raise ValueError(f"Amount of {amount} doesn't correspond to any membership type")

Expand Down

0 comments on commit 64a6e55

Please sign in to comment.