fix(fallback): missing conversion from float to int

main
Luca 7 months ago
parent fecdf70ac5
commit 99285186e5

@ -91,6 +91,7 @@ class TeamMember(models.Model):
extra_chance, shift_count = math.modf(
min(max_shifts_per_member, shifts_per_member)
)
shift_count = int(shift_count)
if extra_chance > random():
shift_count += 1

Loading…
Cancel
Save