Skip to content

Commit

Permalink
Use enum.global_enum
Browse files Browse the repository at this point in the history
  • Loading branch information
gbtami committed Jan 11, 2025
1 parent 520d9a9 commit d577f16
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions server/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,19 +42,13 @@


# tournament status
@global_enum
class TStatus(IntEnum):
CREATED = 0
STARTED = 1
ABORTED = 2
FINISHED = 3
ARCHIVED = 4


T_CREATED = TStatus.CREATED
T_STARTED = TStatus.STARTED
T_ABORTED = TStatus.ABORTED
T_FINISHED = TStatus.FINISHED
T_ARCHIVED = TStatus.ARCHIVED
T_CREATED = 0
T_STARTED = 1
T_ABORTED = 2
T_FINISHED = 3
T_ARCHIVED = 4


# tournament frequency
Expand Down

0 comments on commit d577f16

Please sign in to comment.