Skip to content

Commit

Permalink
improv: black
Browse files Browse the repository at this point in the history
  • Loading branch information
Klemek committed Jul 13, 2021
1 parent 14f5709 commit e1e1bf1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/logs/channel_logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def is_format(self):
def preload(self, channel: discord.TextChannel):
self.name = channel.name
self.channel = channel

@property
def sorted_messages(self):
return sorted(self.messages)
Expand Down
2 changes: 1 addition & 1 deletion src/logs/message_log.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def __init__(self, message: Union[discord.Message, dict], channel: Any):
def __eq__(self, other: object) -> bool:
return isinstance(other, self.__class__) and other.id == self.id

def __gt__(self, other: 'MessageLog') -> bool:
def __gt__(self, other: "MessageLog") -> bool:
return self.created_at > other.created_at

def __hash__(self) -> int:
Expand Down
4 changes: 3 additions & 1 deletion src/scanners/scanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ async def compute(
dates = []
for i, arg in enumerate(args[1:]):
skip_check = False
if self.all_args and (f"'{arg}'" in message.content or f"\"{arg}\"" in message.content):
if self.all_args and (
f"'{arg}'" in message.content or f'"{arg}"' in message.content
):
self.other_args += [arg]
elif re.match(r"^<@!?\d+>$", arg):
arg = arg[3:-1] if "!" in arg else arg[2:-1]
Expand Down

0 comments on commit e1e1bf1

Please sign in to comment.