mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2026-02-07 07:36:20 +01:00
Shorthand notify command
Notifications on API key update failures Notifications on application status updates Notifications on services disabled
This commit is contained in:
@@ -5,8 +5,8 @@ def notify(user, title, message=None, level='info'):
|
||||
notif.user = user
|
||||
notif.title = title
|
||||
if not message:
|
||||
message = Title
|
||||
message = title
|
||||
notif.message = message
|
||||
notif.level = level
|
||||
notif.save()
|
||||
logger.info("Created notification %s" % notif
|
||||
logger.info("Created notification %s" % notif)
|
||||
|
||||
Reference in New Issue
Block a user