Skip to content

Commit

Permalink
chore: add Junior status
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtemSBulgakov committed Feb 24, 2024
1 parent 9bedfe1 commit 7070aee
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/schemas/participant.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,17 @@


class ParticipantStatus(StrEnum):
# 12 * 7 = 84 hours per week

FREE = "free"
JUNIOR = "junior"
MIDDLE = "middle"
SENIOR = "senior"
LORD = "lord"

def max_hours_to_book_per_day(self) -> Optional[int]:
if self == ParticipantStatus.FREE:
return 2
elif self == ParticipantStatus.JUNIOR:
return 2
elif self == ParticipantStatus.MIDDLE:
return 3
elif self == ParticipantStatus.SENIOR:
Expand All @@ -26,6 +27,8 @@ def max_hours_to_book_per_day(self) -> Optional[int]:
def max_hours_to_book_per_week(self) -> Optional[int]:
if self == ParticipantStatus.FREE:
return 4
elif self == ParticipantStatus.JUNIOR:
return 5
elif self == ParticipantStatus.MIDDLE:
return 8
elif self == ParticipantStatus.SENIOR:
Expand Down

0 comments on commit 7070aee

Please sign in to comment.