diff --git a/management/commands/send_reports.py b/management/commands/send_reports.py index 8112aeb..2070b17 100644 --- a/management/commands/send_reports.py +++ b/management/commands/send_reports.py @@ -33,8 +33,9 @@ class Command(BaseCommand): delta = now.date() - last_report.date() if delta.days < note.user.profile.report_frequency: continue - note.user.profile.last_report = now - note.user.profile.save() + if not options["debug"]: + note.user.profile.last_report = now + note.user.profile.save() last_transactions = Transaction.objects.filter( Q(source=note) | Q(destination=note), created_at__gte=last_report,