From 01f543406582d5ca524a481a283b50cb4ae344c9 Mon Sep 17 00:00:00 2001 From: Luca Date: Sat, 2 Nov 2024 19:57:39 +0100 Subject: [PATCH] fix: round half up instead of rounding down --- pretalx_musicrate/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pretalx_musicrate/views.py b/pretalx_musicrate/views.py index c89445d..1836b42 100644 --- a/pretalx_musicrate/views.py +++ b/pretalx_musicrate/views.py @@ -377,7 +377,7 @@ class MayAdvanceView(EventPermissionRequired, SubmissionMixin, View): return JsonResponse( { "mayAdvance": num_ratings - >= int( + >= round( num_jurors * self.request.event.pretalx_musicrate_settings.advance_threshold )