remove .DS_Store

This commit is contained in:
2024-08-27 17:27:45 +02:00
parent 87f3411af4
commit 22cbf5930d
31 changed files with 5 additions and 2 deletions

BIN
.DS_Store vendored

Binary file not shown.

3
.gitignore vendored
View File

@ -1,2 +1,3 @@
*/.env */.env
*.pyc *.pyc
.DS_Store

Binary file not shown.

Binary file not shown.

View File

@ -6,7 +6,7 @@
# By: edbernar <edbernar@student.42angouleme. +#+ +:+ +#+ # # By: edbernar <edbernar@student.42angouleme. +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ # # +#+#+#+#+#+ +#+ #
# Created: 2024/08/04 13:44:11 by edbernar #+# #+# # # 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) socket.sendError("User not found", 9008)
return; return;
user = User.objects.filter(id=socket.scope["session"]["id"]) 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 = Message.objects.create(sender=user[0], to=dest[0], content=content["content"])
new_msg.save() new_msg.save()
jsonVar = {"type": "new_private_message", "content": { jsonVar = {"type": "new_private_message", "content": {

Binary file not shown.

BIN
site/.DS_Store vendored

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.