mirror of
https://gitlab.science.ru.nl/technicie/MarietjeDjango.git
synced 2025-12-09 22:52:23 +01:00
Do not include html in upload ratio error
This commit is contained in:
@ -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):
|
||||
|
||||
Reference in New Issue
Block a user