feat: Add song difficulty leaderboard feature
This commit is contained in:
26
schema.py
26
schema.py
@@ -80,3 +80,29 @@ scores_save = {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
leaderboard_submit = {
|
||||
'$schema': 'http://json-schema.org/schema#',
|
||||
'type': 'object',
|
||||
'properties': {
|
||||
'song_id': {'type': ['integer', 'string']},
|
||||
'difficulty': {'type': 'string', 'enum': ['easy', 'normal', 'hard', 'oni', 'ura']},
|
||||
'score': {'type': 'integer'},
|
||||
'good': {'type': 'integer'},
|
||||
'ok': {'type': 'integer'},
|
||||
'bad': {'type': 'integer'},
|
||||
'maxCombo': {'type': 'integer'},
|
||||
'hash': {'type': 'string'}
|
||||
},
|
||||
'required': ['difficulty', 'score']
|
||||
}
|
||||
|
||||
leaderboard_get = {
|
||||
'$schema': 'http://json-schema.org/schema#',
|
||||
'type': 'object',
|
||||
'properties': {
|
||||
'song_id': {'type': ['integer', 'string']},
|
||||
'difficulty': {'type': 'string'}
|
||||
},
|
||||
'required': ['song_id', 'difficulty']
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user