We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 464ad5b + 12c57aa commit 35795f4Copy full SHA for 35795f4
scripts/triggered_mails.py
@@ -81,7 +81,7 @@ def find_inactive_users_without_enqueued_or_sent_no_login():
81
date_last_login__lt=timezone.now() - settings.NO_LOGIN_OSF4M_WAIT_TIME,
82
tags__name='osf4m'
83
)
84
- )
+ ).distinct()
85
86
# Exclude users who already have a task for this email type
87
return base_q.annotate(_has_task=Exists(existing_no_login)).filter(_has_task=False)
0 commit comments