Commit 73b8da36 authored by Bui's avatar Bui

fix registration bug

parent 62aca02a
......@@ -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
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment