Skip to content
Snippets Groups Projects
Commit 1dd4fb63 authored by ale's avatar ale
Browse files

fix

parent 19b4128f
No related branches found
No related tags found
No related merge requests found
...@@ -178,6 +178,6 @@ def markov_json(): ...@@ -178,6 +178,6 @@ def markov_json():
@app.route('/json/random', methods=['GET']) @app.route('/json/random', methods=['GET'])
@require_auth @require_auth
def random_json(): def random_json():
n = int(request.form.get('n', 10)) n = int(request.args.get('n', 10))
random_songs = [x.sha1 for x in MP3.get_random_songs(n)] random_songs = [x.sha1 for x in MP3.get_random_songs(n)]
return jsonify(results=random_songs) return jsonify(results=random_songs)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment