fix(aurora): removed some logging statements
This commit is contained in:
parent
ff66006b8a
commit
720e100a20
2 changed files with 0 additions and 4 deletions
|
@ -4,7 +4,6 @@ from typing import Literal, Optional
|
|||
|
||||
from redbot.core.bot import Red
|
||||
|
||||
from ..utilities.logger import logger
|
||||
from .base import AuroraBaseModel
|
||||
from .partials import PartialUser
|
||||
|
||||
|
@ -29,10 +28,8 @@ class Change(AuroraBaseModel):
|
|||
|
||||
@classmethod
|
||||
def from_dict(cls, bot: Red, data: dict) -> "Change":
|
||||
logger.verbose("Creating Change from dict (%s): %s", type(data), data)
|
||||
if isinstance(data, str):
|
||||
data = json.loads(data)
|
||||
logger.verbose("Change data was a string, converted to dict: %s", data)
|
||||
if "duration" in data and data["duration"] and not isinstance(data["duration"], timedelta):
|
||||
hours, minutes, seconds = map(int, data["duration"].split(':'))
|
||||
duration = timedelta(hours=hours, minutes=minutes, seconds=seconds)
|
||||
|
|
|
@ -162,7 +162,6 @@ class Moderation(AuroraGuildModel):
|
|||
|
||||
@classmethod
|
||||
def from_dict(cls, bot: Red, data: dict) -> "Moderation":
|
||||
logger.verbose("Creating Moderation from dict (%s): %s", type(data), data)
|
||||
return cls(bot=bot, **data)
|
||||
|
||||
@classmethod
|
||||
|
|
Loading…
Reference in a new issue