aboutsummaryrefslogtreecommitdiff
path: root/app/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/utils.py')
-rw-r--r--app/utils.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/utils.py b/app/utils.py
index 5f47f75..0f5a916 100644
--- a/app/utils.py
+++ b/app/utils.py
@@ -204,6 +204,11 @@ def addNotification(target, causer, title, url, package=None):
db.session.add(notif)
+def addAuditLog(severity, causer, title, url, package=None):
+ entry = AuditLogEntry(causer, severity, title, url, package)
+ db.session.add(entry)
+
+
def clearNotifications(url):
if current_user.is_authenticated:
Notification.query.filter_by(user=current_user, url=url).delete()