Fix: Support both numeric and hash song IDs for leaderboard
This commit is contained in:
@@ -85,9 +85,10 @@ leaderboard_submit = {
|
||||
'$schema': 'http://json-schema.org/schema#',
|
||||
'type': 'object',
|
||||
'properties': {
|
||||
'song_id': {'type': 'number'},
|
||||
'song_id': {'type': ['number', 'string']},
|
||||
'difficulty': {'type': 'string'},
|
||||
'score': {'type': 'object'}
|
||||
},
|
||||
'required': ['song_id', 'difficulty', 'score']
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user