Skip to content
Snippets Groups Projects
Verified Commit 7676f692 authored by ynerant's avatar ynerant
Browse files

Fix note list when daily reports are sent


Signed-off-by: ynerant's avatarYohann D'ANELLO <ynerant@crans.org>
parent 8ec7d68a
No related branches found
No related tags found
No related merge requests found
...@@ -20,8 +20,8 @@ class Command(BaseCommand): ...@@ -20,8 +20,8 @@ class Command(BaseCommand):
def handle(self, *args, **options): def handle(self, *args, **options):
activate('fr') activate('fr')
if "notes" in options: if 'notes' in options and options['notes']:
notes = NoteUser.objects.filter(pk__in=options["notes"]).all() notes = NoteUser.objects.filter(pk__in=options['notes']).all()
else: else:
notes = NoteUser.objects.filter( notes = NoteUser.objects.filter(
user__memberships__date_end__gte=timezone.now(), user__memberships__date_end__gte=timezone.now(),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment