diff --git a/shiftregister/fallback/models.py b/shiftregister/fallback/models.py index e396051..ea99226 100644 --- a/shiftregister/fallback/models.py +++ b/shiftregister/fallback/models.py @@ -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