mirror of
https://github.com/simple-login/app.git
synced 2025-02-22 14:53:34 +08:00
order user by id
This commit is contained in:
parent
e2b086c449
commit
269b62756e
1 changed files with 1 additions and 1 deletions
2
shell.py
2
shell.py
|
@ -41,7 +41,7 @@ def send_safari_extension_newsletter():
|
|||
|
||||
|
||||
def send_mailbox_newsletter():
|
||||
for user in User.query.all():
|
||||
for user in User.query.order_by(User.id).all():
|
||||
if user.notification and user.activated:
|
||||
try:
|
||||
LOG.d("Send newsletter to %s", user)
|
||||
|
|
Loading…
Reference in a new issue