Skip to content
Commits on Source (1)
......@@ -20,8 +20,8 @@ class Command(BaseCommand):
def handle(self, *args, **options):
activate('fr')
if "notes" in options:
notes = NoteUser.objects.filter(pk__in=options["notes"]).all()
if 'notes' in options and options['notes']:
notes = NoteUser.objects.filter(pk__in=options['notes']).all()
else:
notes = NoteUser.objects.filter(
user__memberships__date_end__gte=timezone.now(),
......