Updated server/server.py
This commit is contained in:
parent
2b2b0ec8d7
commit
c61c7c4df9
|
|
@ -20,6 +20,7 @@ async def talking(request: Request) -> HTTPResponse:
|
||||||
|
|
||||||
@app.route('/update', methods=["GET", "POST"])
|
@app.route('/update', methods=["GET", "POST"])
|
||||||
async def talking(request: Request) -> HTTPResponse:
|
async def talking(request: Request) -> HTTPResponse:
|
||||||
|
print("users_in_chat", [[username, ip] for username, ip in zip(users.keys(),users.values())])
|
||||||
return response.json({
|
return response.json({
|
||||||
"status": actual_messages,
|
"status": actual_messages,
|
||||||
"users_in_chat": [[username, ip] for username, ip in zip(
|
"users_in_chat": [[username, ip] for username, ip in zip(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user