Add south-specific hacks

This commit is contained in:
root
2018-04-09 14:55:02 +02:00
parent 32f2aaac7a
commit 684710ebae
3 changed files with 19 additions and 55 deletions

View File

@ -259,7 +259,7 @@ def upload(request):
for i, file in enumerate(files):
duration = File(file).info.length
hash = send_to_bertha(file)
hash = send_to_bertha(file).decode('ascii')
if not hash:
return JsonResponse({'success': False, 'errorMessage': 'Files not uploaded correctly.'})
song = Song(user=request.user, artist=artists[i], title=titles[i], hash=hash, duration=duration)