]> git.ipfire.org Git - dbl.git/commitdiff
reports: Minor code cleanup
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 10 Mar 2026 15:24:15 +0000 (15:24 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 10 Mar 2026 15:24:15 +0000 (15:24 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/dbl/reports.py

index a9bb3576fd4299f65c97bdc5994d5e5752e4b473..e37b676b1efb546e234fc0721196bf188bbb02ed 100644 (file)
@@ -131,8 +131,12 @@ class Reports(object):
                if isinstance(reported_by, users.User):
                        reported_by = reported_by.uid
 
+               # Insert the report into the database
                report = await self.backend.db.insert(
-                       Report, name=name, reported_by=reported_by, **kwargs,
+                       Report,
+                       name        = name,
+                       reported_by = reported_by,
+                       **kwargs,
                )
 
                # Manifest the object in the database immediately to assign the ID
@@ -141,7 +145,9 @@ class Reports(object):
                # Post the comment
                if comment:
                        await report.comment(
-                               comment=comment, reporter=report.reported_by, notify=False,
+                               comment  = comment,
+                               reporter = report.reported_by,
+                               notify   = False,
                        )
 
                # Send a notification to the reporter