Skip to content

Commit 66669a6

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent a1beb85 commit 66669a6

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

bot/cogs/config.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import datetime
44
import difflib
5-
import re
65
from typing import (
76
TYPE_CHECKING,
87
Annotated,
@@ -288,7 +287,7 @@ async def convert(self, ctx: GuildContext, argument: str) -> str:
288287
)
289288

290289
# TODO: Parse datetime timedeltas here
291-
290+
292291
return argument
293292

294293

@@ -690,14 +689,13 @@ async def config_set(
690689
f"Please use `{ctx.prefix or 'r>'}config toggle` for setting configuration values that are boolean"
691690
)
692691
return
693-
692+
694693
# I'm not joking but this is the only cleanest way I can think of doing this
695694
# Noelle 2024
696695
if key in "account_age":
697696
clause = "SET account_age = $2"
698697
else:
699698
clause = "SET guild_age = $2"
700-
701699

702700
query = f"""
703701
UPDATE guild_config

0 commit comments

Comments
 (0)