From 73b8da36abeddeb69f3456602642565edeecaa5d Mon Sep 17 00:00:00 2001 From: Bui Date: Fri, 13 Mar 2020 03:54:27 +0000 Subject: [PATCH] fix registration bug --- app.py | 2 +- public/src/js/scorestorage.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index 781819d..663d1a6 100644 --- a/app.py +++ b/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') diff --git a/public/src/js/scorestorage.js b/public/src/js/scorestorage.js index 330a639..dc37a80 100644 --- a/public/src/js/scorestorage.js +++ b/public/src/js/scorestorage.js @@ -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 }