Skip to content
Commits on Source (1)
......@@ -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,
......