Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
hypergonial committed Nov 9, 2023
1 parent 1bc650b commit 914622d
Show file tree
Hide file tree
Showing 3 changed files with 300 additions and 307 deletions.
4 changes: 3 additions & 1 deletion extensions/userlog.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,9 @@ async def get_log_channel_ids_view(guild_id: int) -> dict[str, int | None]:

records = await userlog.app.db_cache.get(table="log_config", guild_id=guild_id, limit=1)

log_channels: dict[str, int | None] = json.loads(records[0]["log_channels"]) if records and records[0]["log_channels"] else {}
log_channels: dict[str, int | None] = (
json.loads(records[0]["log_channels"]) if records and records[0]["log_channels"] else {}
)

for log_event in LogEvent:
if log_event.value not in log_channels.keys():
Expand Down
Loading

0 comments on commit 914622d

Please sign in to comment.