Skip to content

Commit

Permalink
Fix bug in banning
Browse files Browse the repository at this point in the history
  • Loading branch information
Raymo111 committed Apr 16, 2023
1 parent 6b03744 commit 9664088
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/nexus/Freqlog/Freqlog.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,9 @@ def check_banned(self, word: str, case: CaseSensitivity) -> bool:
logging.info(f"Checking if {word} is banned, case {case}")
return self.backend.check_banned(word, case)

def ban_word(self, word: str, case: CaseSensitivity, time: datetime) -> None:
def ban_word(self, word: str, case: CaseSensitivity) -> None:
"""Ban a word from being logged"""
time = datetime.now()
logging.info(f"Banning {word}, case {case} - {time}")
self.backend.ban_word(word, case, time)
logging.warning(f"Banned {word}, case {case}")
Expand Down
2 changes: 1 addition & 1 deletion src/nexus/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Freqlog chentered words."""

__author__ = "CharaChorder"
__version__ = "0.2.0"
__version__ = "0.2.1"

0 comments on commit 9664088

Please sign in to comment.