diff --git a/scipost_django/finances/management/commands/recalculate_pubfracs.py b/scipost_django/finances/management/commands/recalculate_pubfracs.py index 3a5186d8b32f6dc58c39901da2fe1be733dd42de..51ec292f00f443fde2ccab444b6adb15471facd1 100644 --- a/scipost_django/finances/management/commands/recalculate_pubfracs.py +++ b/scipost_django/finances/management/commands/recalculate_pubfracs.py @@ -11,5 +11,5 @@ class Command(BaseCommand): help = "Recalculates PubFracs for all publications" def handle(self, *args, **kwargs): - for pub in Publication.objects.all(): + for pub in Publication.objects.published(): pub.recalculate_pubfracs()