Files
2026-10-21 15:25:33 +02:00

13 lines
482 B
Python

from django.core.management.base import BaseCommand, CommandError
from knowledge.notifications import NotificationError, rediscover_once
class Command(BaseCommand):
help = 'Send at most one eligible Knowledge Library ntfy reminder, subject to opt-in, quiet hours and weekly limit.'
def handle(self, *args, **options):
try:
self.stdout.write(rediscover_once())
except NotificationError as exc:
raise CommandError(str(exc)) from exc