mirror of
https://github.com/yuukiwww/taiko-web.git
synced 2024-10-22 17:05:49 +02: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