Fix long audit descriptions being lost

This commit is contained in:
rubenwardy 2023-01-13 23:49:06 +00:00
parent 157f418855
commit c927a87db3

@ -95,6 +95,8 @@ class AuditLogEntry(db.Model):
def __init__(self, causer, severity, title, url, package=None, description=None):
if len(title) > 100:
if description is None:
description = title[99:]
title = title[:99] + ""
self.causer = causer