From b7a23aff9f5cf54455d04bdee9d26b633ee0a861 Mon Sep 17 00:00:00 2001 From: Alix JEUDI--LEMOINE Date: Tue, 4 Feb 2025 08:40:56 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Added=20friend=20relationship=20int?= =?UTF-8?q?o=20the=20stub?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/stub.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/stub.py b/app/stub.py index 9bc933d..b7bb22d 100644 --- a/app/stub.py +++ b/app/stub.py @@ -50,6 +50,13 @@ def populate_data(): "user_id": str(user2_id) } ]) + + friends_collection = db["friends"] + friends_collection.insert_one({ + "user_id": str(user1_id), + "friend_user_id": str(user2_id), + "status": "accepted" + }) if __name__ == "__main__": populate_data()