link preview v1
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
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
|
||||
Reference in New Issue
Block a user