Skip to content

Commit

Permalink
Update server.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rwolf2467 committed Nov 23, 2024
1 parent 30a37bf commit 5e397d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ def save_data(file_path, data):
]


def check_chatfilter(input_str: str, badwords, goodwords):
threshold: int = 1 if len(input_str) < 50 else 2
def check_chatfilter(input_str: str, badwords, goodwords, cid: int, gid: int):
threshold: int = 1 if len(input_str) < 150 else 2
input_data = input_str.lower().split()

for word in input_data:
Expand Down

0 comments on commit 5e397d2

Please sign in to comment.