Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
5hojib committed Dec 7, 2024
1 parent 46b2616 commit 7d700d7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions bot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@

class CustomFormatter(Formatter):
def formatTime( # noqa: N802
self: CustomFormatter,
self,
record: LogRecord,
datefmt: str | None,
) -> str:
Expand All @@ -65,7 +65,7 @@ def formatTime( # noqa: N802
)
return dt.strftime(datefmt)

def format(self: CustomFormatter, record: LogRecord) -> str:
def format(self, record: LogRecord) -> str:
return super().format(record).replace(record.levelname, record.levelname[:1])


Expand Down
4 changes: 2 additions & 2 deletions update.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

class CustomFormatter(Formatter):
def formatTime( # noqa: N802
self: CustomFormatter,
self,
record: LogRecord,
datefmt: str | None,
) -> str:
Expand All @@ -32,7 +32,7 @@ def formatTime( # noqa: N802
)
return dt.strftime(datefmt)

def format(self: CustomFormatter, record: LogRecord) -> str:
def format(self, record: LogRecord) -> str:
return super().format(record).replace(record.levelname, record.levelname[:1])


Expand Down

0 comments on commit 7d700d7

Please sign in to comment.