mirror of
				https://gitlab.crans.org/bde/nk20-scripts
				synced 2025-10-31 07:09:52 +01:00 
			
		
		
		
	Mails are sent by the cron, not by the script
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
This commit is contained in:
		| @@ -1,6 +1,6 @@ | ||||
| # Copyright (C) 2018-2020 by BDE ENS Paris-Saclay | ||||
| # SPDX-License-Identifier: GPL-3.0-or-later | ||||
| from django.core.mail import send_mail | ||||
|  | ||||
| from django.core.management import BaseCommand | ||||
| from django.db.models import Sum, F | ||||
|  | ||||
| @@ -14,7 +14,6 @@ class Command(BaseCommand): | ||||
|         parser.add_argument('--check-all', '-a', action='store_true', help='Check all notes') | ||||
|         parser.add_argument('--check', '-c', type=int, nargs='+', help='Select note ids') | ||||
|         parser.add_argument('--fix', '-f', action='store_true', help='Fix note balances') | ||||
|         parser.add_argument('--mail', '-m', action='store_true', help='Send mail to admins if there is an error') | ||||
|  | ||||
|     def handle(self, *args, **options): | ||||
|         error = False | ||||
|   | ||||
		Reference in New Issue
	
	Block a user