mirror of
https://github.com/jiojciojsioe3/a3cjroijsiojiorj.git
synced 2024-11-15 15:31:51 +08:00
fix registration bug
This commit is contained in:
parent
62aca02aab
commit
73b8da36ab
2
app.py
2
app.py
@ -339,7 +339,7 @@ def route_api_scores_save():
|
|||||||
'score': score['score']
|
'score': score['score']
|
||||||
}}, upsert=True)
|
}}, upsert=True)
|
||||||
|
|
||||||
return jsonify({'success': True})
|
return jsonify({'status': 'ok'})
|
||||||
|
|
||||||
|
|
||||||
@app.route('/api/scores/get')
|
@app.route('/api/scores/get')
|
||||||
|
@ -54,7 +54,7 @@ class ScoreStorage{
|
|||||||
prepareScores(scores){
|
prepareScores(scores){
|
||||||
var output = []
|
var output = []
|
||||||
for (var k in scores) {
|
for (var k in scores) {
|
||||||
songs.push({'hash': k, 'score': scores[k]})
|
output.push({'hash': k, 'score': scores[k]})
|
||||||
}
|
}
|
||||||
return output
|
return output
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user