dfs
This commit is contained in:
parent
0eed788e48
commit
0f31be4df6
1 changed files with 1 additions and 5 deletions
|
@ -6,7 +6,6 @@ from flask_socketio import SocketIO, emit
|
||||||
|
|
||||||
sex = SocketIO(app)
|
sex = SocketIO(app)
|
||||||
|
|
||||||
|
|
||||||
@app.get("/chat")
|
@app.get("/chat")
|
||||||
@auth_required
|
@auth_required
|
||||||
def chat( v):
|
def chat( v):
|
||||||
|
@ -17,10 +16,7 @@ def chat( v):
|
||||||
@auth_required
|
@auth_required
|
||||||
def speak(data, v):
|
def speak(data, v):
|
||||||
|
|
||||||
raw_text=data['text'][0:1000].lstrip().rstrip()
|
text = sanitize(data['text'][0:1000].strip())
|
||||||
if not raw_text:return
|
|
||||||
|
|
||||||
text = sanitize(raw_text)
|
|
||||||
|
|
||||||
data={
|
data={
|
||||||
"avatar": v.profile_url,
|
"avatar": v.profile_url,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue