Skip to content

Commit

Permalink
Add BeatmapSortBy enum
Browse files Browse the repository at this point in the history
  • Loading branch information
Lekuruu committed Oct 30, 2023
1 parent d5dd406 commit 4dd4636
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion constants/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

from .status import SubmissionStatus, LegacyStatus, DatabaseStatus
from .beatmap import BeatmapGenre, BeatmapLanguage
from .beatmap import BeatmapGenre, BeatmapLanguage, BeatmapSortBy
from .permissions import Permissions
from .user import Playstyle
from .modes import GameMode
Expand Down
10 changes: 10 additions & 0 deletions constants/beatmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,13 @@ class BeatmapLanguage(IntEnum):
Russian = 12
Polish = 13
Other = 14

class BeatmapSortBy(IntEnum):
Title = 0
Artist = 1
Creator = 2
Difficulty = 3
RankedAsc = 4
RankedDesc = 5
Rating = 6
Plays = 7

0 comments on commit 4dd4636

Please sign in to comment.