fix(fallback): missing conversion from float to int
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
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…
Reference in New Issue