introduce Ruff formatting
This commit is contained in:
@@ -19,7 +19,7 @@ app.add_middleware(
|
||||
)
|
||||
|
||||
|
||||
@app.post('/start_call')
|
||||
@app.post("/start_call")
|
||||
async def start_call():
|
||||
print("POST TwiML")
|
||||
return HTMLResponse(content=open("templates/streams.xml").read(), media_type="application/xml")
|
||||
@@ -32,7 +32,7 @@ async def websocket_endpoint(websocket: WebSocket):
|
||||
await start_data.__anext__()
|
||||
call_data = json.loads(await start_data.__anext__())
|
||||
print(call_data, flush=True)
|
||||
stream_sid = call_data['start']['streamSid']
|
||||
stream_sid = call_data["start"]["streamSid"]
|
||||
print("WebSocket connection accepted")
|
||||
await run_bot(websocket, stream_sid)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user