Skip to content

Commit

Permalink
Update server.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Red_wolf2467 committed Nov 17, 2024
1 parent d600c07 commit 7c1335a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions server.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ def hash_string(string: str):
@server.route("/chatfilter")
async def check_message():
start_time = time.time()
logger.info(f"Start processing order number chatfilter-{uuid.uuid1}")
id=uuid.uuid1()
logger.info(f"Start processing order number chatfilter-{id}")
data = await request.get_json()
badwords = load_data("json/badwords.json")
goodwords = load_data("json/goodwords.json")
Expand All @@ -112,7 +113,7 @@ async def check_message():
async def check_user():
print()
start_time = time.time()
id = uuid.uuid1
id = uuid.uuid1()
logger.info(f"Start processing order number user-{id}")
data = await request.get_json()
key_hash_list = load_data("json/key_hash.json")
Expand Down

0 comments on commit 7c1335a

Please sign in to comment.