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
# 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