Skip to content
GitLab
Explore
Sign in
Commits on Source (1)
Fix note list when daily reports are sent
· 7676f692
ynerant
authored
Apr 08, 2021
Signed-off-by:
Yohann D'ANELLO
<
ynerant@crans.org
>
7676f692
Hide whitespace changes
Inline
Side-by-side
management/commands/send_reports.py
View file @
7676f692
...
...
@@ -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
(),
...
...