remove .DS_Store

This commit is contained in:
2024-08-27 17:27:45 +02:00
parent 76a746efb1
commit 9069104ca4
31 changed files with 5 additions and 2 deletions

View File

@ -6,7 +6,7 @@
# By: edbernar <edbernar@student.42angouleme. +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2024/08/04 13:44:11 by edbernar #+# #+# #
# Updated: 2024/08/26 00:37:41 by edbernar ### ########.fr #
# Updated: 2024/08/27 17:09:39 by tomoron ### ########.fr #
# #
# **************************************************************************** #
@ -27,6 +27,8 @@ def sendPrivateMessage(socket, content):
socket.sendError("User not found", 9008)
return;
user = User.objects.filter(id=socket.scope["session"]["id"])
if(int(content["to"]) == user[0].id):
socket.sendError("Invalid message sent", 9009)
new_msg = Message.objects.create(sender=user[0], to=dest[0], content=content["content"])
new_msg.save()
jsonVar = {"type": "new_private_message", "content": {