From b5101c33aca34ae2837ceebc6b4e4ca6d501cbbe Mon Sep 17 00:00:00 2001 From: princekhunt Date: Sun, 16 Jun 2024 15:30:49 +0530 Subject: [PATCH] resolving syntax error --- chat/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chat/views.py b/chat/views.py index c7ba4ab..f4c4fd5 100644 --- a/chat/views.py +++ b/chat/views.py @@ -79,7 +79,7 @@ def chat(request, username): #messages = Messages.objects.filter(sender_name=id, receiver_name=friend.id) | Messages.objects.filter(sender_name=friend.id, receiver_name=id) public_key = Keys.objects.get(user=friend).public_key # Get the friend's public key - public_key = base64.b64encode(public_key.encode('utf-8')).decode('utf-8'L encode the public key + public_key = base64.b64encode(public_key.encode('utf-8')).decode('utf-8')# encode the public key public_key = urllib.parse.quote_plus(public_key) # URL encode the public key friends = getFriendsList(id) # Get the friends list for the current user