fix registration bug

This commit is contained in:
Bui 2020-03-13 03:54:27 +00:00
parent 62aca02aab
commit 73b8da36ab
2 changed files with 2 additions and 2 deletions

2
app.py
View File

@ -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')

View File

@ -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
}