Do not include html in upload ratio error

This commit is contained in:
Daan Sprenkels
2018-10-28 15:15:29 +01:00
parent e97a0c9711
commit 3a4f9a336f

View File

@ -265,7 +265,7 @@ def upload(request):
ratiostr = ""
if not request.user.is_superuser and ratio < 1.0:
msg = 'Queue-to-upload ratio too low. Please queue more <em title="8:00 to 21:00 during weekdays">during regular opening hours</em> to improve the ratio. (Ratio: {} ≱ 1.00)'
msg = 'Queue-to-upload ratio too low. Please queue more during regular opening hours to improve the ratio. (Ratio: {} ≱ 1.00)'
return JsonResponse({'success': False, 'errorMessage': msg.format(ratiostr)})
for i, file in enumerate(files):