fix: round half up instead of rounding down
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Luca 2024-11-02 19:57:39 +01:00
parent e7df05566f
commit 01f5434065
1 changed files with 1 additions and 1 deletions

View File

@ -377,7 +377,7 @@ class MayAdvanceView(EventPermissionRequired, SubmissionMixin, View):
return JsonResponse( return JsonResponse(
{ {
"mayAdvance": num_ratings "mayAdvance": num_ratings
>= int( >= round(
num_jurors num_jurors
* self.request.event.pretalx_musicrate_settings.advance_threshold * self.request.event.pretalx_musicrate_settings.advance_threshold
) )