From 3a4f9a336faa409ee1823518df24cee56193c30e Mon Sep 17 00:00:00 2001 From: Daan Sprenkels Date: Sun, 28 Oct 2018 15:15:29 +0100 Subject: [PATCH] Do not include html in upload ratio error --- marietje/api/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/marietje/api/views.py b/marietje/api/views.py index a2e5e58..04b48c7 100644 --- a/marietje/api/views.py +++ b/marietje/api/views.py @@ -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 during regular opening hours 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):