2
0
Fork 0

fix(fallback): missing conversion from float to int
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Luca 2024-05-20 18:44:36 +02:00
parent fecdf70ac5
commit 99285186e5
1 changed files with 1 additions and 0 deletions

View File

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