fix(aurora): added temporary debug logging
This commit is contained in:
parent
8cbe9d94cf
commit
ac7d950aaa
2 changed files with 4 additions and 1 deletions
|
@ -4,6 +4,7 @@ from typing import Literal, Optional
|
|||
|
||||
from redbot.core.bot import Red
|
||||
|
||||
from ..utilities.logger import logger
|
||||
from ..utilities.utils import timedelta_from_string
|
||||
from .base import AuroraBaseModel
|
||||
from .partials import PartialUser
|
||||
|
@ -31,6 +32,8 @@ class Change(AuroraBaseModel):
|
|||
def from_dict(cls, bot: Red, data: dict) -> "Change":
|
||||
if isinstance(data, str):
|
||||
data = json.loads(data)
|
||||
if data.get('duration'):
|
||||
logger.debug(f"Duration: {data['duration']}")
|
||||
if "duration" in data and data["duration"] and not isinstance(data["duration"], timedelta) and not data["duration"] == "NULL":
|
||||
duration = timedelta_from_string(data["duration"])
|
||||
elif "duration" in data and isinstance(data["duration"], timedelta):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue