WIP: Moderation type registry #26
1 changed files with 2 additions and 1 deletions
|
@ -106,7 +106,7 @@ class Moderation(AuroraGuildModel):
|
|||
))
|
||||
cursor.close()
|
||||
|
||||
logger.info("Updated moderation case %s in guild %s with the following data:\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s",
|
||||
logger.info("Row updated in moderation_%s!\n%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s",
|
||||
self.moderation_id,
|
||||
self.guild_id,
|
||||
self.timestamp.timestamp(),
|
||||
|
@ -277,6 +277,7 @@ class Change(AuroraBaseModel):
|
|||
|
||||
@classmethod
|
||||
def from_dict(cls, bot: Red, data: dict) -> "Change":
|
||||
logger.debug("Creating Change from 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)
|
||||
|
|
Loading…
Reference in a new issue