Skip to content
Snippets Groups Projects
Commit 525b041e authored by ale's avatar ale
Browse files

get_random_songs already returns SHA1 hashes

parent 3e675f66
No related branches found
No related tags found
No related merge requests found
......@@ -178,5 +178,5 @@ def markov_json():
@require_auth
def random_json():
n = int(request.args.get('n', 10))
random_songs = [x.sha1 for x in MP3.get_random_songs(n)]
random_songs = MP3.get_random_songs(n)
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