bug_report_service

Attributes

logger

Logger for the bug report service module

Classes

BugReportService

The BugReportService class provides static methods to handle bug reports submitted by users.

Module Contents

logger

Logger for the bug report service module

class BugReportService

The BugReportService class provides static methods to handle bug reports submitted by users.

static add_bug_report(user_id: int, username: str, message: str) int

Write a bug report for a user.

Parameters:
  • user_id (int) – The ID of the user submitting the bug report.

  • username (str) – The username of the user submitting the bug report.

  • message (str) – The content of the bug report.

Returns:

The ID of the newly created bug report.

Return type:

int