diff --git a/chat.py b/chat.py index b19ebd1a4f77246f82b4916b91f162f10fabf743..31b5a54720b2cdca92ecbbd490860098f48f46b7 100644 --- a/chat.py +++ b/chat.py @@ -44,9 +44,9 @@ async def echo(websocket): #根据api-token查找房间号 room_id = name[websocket]['room_id'] #历史记录数量 - if "history_num" in event["type"]: + if "historynum" in event["type"]: r = { - "type": "history_num", + "type": "historynum", "content": "{}", } if room_id in history : diff --git a/websockets/__pycache__/__init__.cpython-312.pyc b/websockets/__pycache__/__init__.cpython-312.pyc deleted file mode 100644 index 5a82c9d1d3debeaa887ae905f6ee6b13d14677f6..0000000000000000000000000000000000000000 Binary files a/websockets/__pycache__/__init__.cpython-312.pyc and /dev/null differ diff --git a/websockets/__pycache__/imports.cpython-312.pyc b/websockets/__pycache__/imports.cpython-312.pyc deleted file mode 100644 index 458e17b5f9d81f94c13a7e48d3c24c3ba0fd3eff..0000000000000000000000000000000000000000 Binary files a/websockets/__pycache__/imports.cpython-312.pyc and /dev/null differ diff --git a/websockets/__pycache__/version.cpython-312.pyc b/websockets/__pycache__/version.cpython-312.pyc deleted file mode 100644 index 5b8bdd41ca624917363e83298962964d02934f55..0000000000000000000000000000000000000000 Binary files a/websockets/__pycache__/version.cpython-312.pyc and /dev/null differ