diff --git a/scipost_django/scipost/templatetags/scipost_extras.py b/scipost_django/scipost/templatetags/scipost_extras.py index 1564e91f0887e9f0eac60e73255e3f6196b3bee4..f5ab4569ad37d662c82f2104a747a8dcdd64000e 100644 --- a/scipost_django/scipost/templatetags/scipost_extras.py +++ b/scipost_django/scipost/templatetags/scipost_extras.py @@ -67,19 +67,3 @@ def is_in_group(user, group_name): def associated_contributors(draft): return Contributor.objects.filter( user__last_name__icontains=draft.last_name).order_by('user__last_name') - - -def is_modulo(counter, total, modulo): - q = max(1, int(total / modulo)) - counter -= 1 - return (counter % q) == (q - 1) - - -@register.filter(name='is_modulo_one_half') -def is_modulo_one_half(counter, total): - return is_modulo(counter, total, 2) - - -@register.filter(name='is_modulo_one_third') -def is_modulo_one_third(counter, total): - return is_modulo(counter, total, 3)