Correction des multiples bugs
This commit is contained in:
parent
5fe70d754b
commit
07198c20b7
15 changed files with 707 additions and 348 deletions
|
|
@ -59,7 +59,8 @@ class TicketCategory:
|
|||
auto_close_days: int = 7,
|
||||
priority_enabled: bool = True,
|
||||
allow_claims: bool = True,
|
||||
survey_enabled: bool = True
|
||||
survey_enabled: bool = True,
|
||||
discord_category_id: Optional[int] = None
|
||||
):
|
||||
self.id = id
|
||||
self.name = name
|
||||
|
|
@ -74,6 +75,7 @@ class TicketCategory:
|
|||
self.priority_enabled = priority_enabled
|
||||
self.allow_claims = allow_claims
|
||||
self.survey_enabled = survey_enabled
|
||||
self.discord_category_id = discord_category_id
|
||||
|
||||
def to_dict(self) -> Dict[str, Any]:
|
||||
"""Convert category to dictionary for storage"""
|
||||
|
|
@ -90,7 +92,8 @@ class TicketCategory:
|
|||
"auto_close_days": self.auto_close_days,
|
||||
"priority_enabled": self.priority_enabled,
|
||||
"allow_claims": self.allow_claims,
|
||||
"survey_enabled": self.survey_enabled
|
||||
"survey_enabled": self.survey_enabled,
|
||||
"discord_category_id": self.discord_category_id
|
||||
}
|
||||
|
||||
@classmethod
|
||||
|
|
@ -109,7 +112,8 @@ class TicketCategory:
|
|||
auto_close_days=data.get("auto_close_days", 7),
|
||||
priority_enabled=data.get("priority_enabled", True),
|
||||
allow_claims=data.get("allow_claims", True),
|
||||
survey_enabled=data.get("survey_enabled", True)
|
||||
survey_enabled=data.get("survey_enabled", True),
|
||||
discord_category_id=data.get("discord_category_id")
|
||||
)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue