mirror of
https://github.com/jiojciojsioe3/a3cjroijsiojiorj.git
synced 2024-11-15 07:21:50 +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']
|
||||
}}, upsert=True)
|
||||
|
||||
return jsonify({'success': True})
|
||||
return jsonify({'status': 'ok'})
|
||||
|
||||
|
||||
@app.route('/api/scores/get')
|
||||
|
@ -54,7 +54,7 @@ class ScoreStorage{
|
||||
prepareScores(scores){
|
||||
var output = []
|
||||
for (var k in scores) {
|
||||
songs.push({'hash': k, 'score': scores[k]})
|
||||
output.push({'hash': k, 'score': scores[k]})
|
||||
}
|
||||
return output
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user