From 2bf2e4856778d19fedaec20192b20a08601f5dfc Mon Sep 17 00:00:00 2001 From: Alix JEUDI--LEMOINE Date: Mon, 3 Feb 2025 16:31:32 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20stub=20script=20content?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/stub.py | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/app/stub.py b/app/stub.py index 87c958f..9bc933d 100644 --- a/app/stub.py +++ b/app/stub.py @@ -26,32 +26,28 @@ def populate_data(): "description": "Description A", "location": [48.858296, 2.294526], "files": ["file_a"], - "owner": str(user1_id), - "created_at": datetime.utcnow() + "user_id": str(user1_id) }, { "title": f"Mont St Michel", "description": "Description B", "location": [48.636111, -1.511389], "files": ["file_b"], - "owner": str(user1_id), - "created_at": datetime.utcnow() + "user_id": str(user1_id) }, { "title": f"Eiffel Tower", "description": "Description X", "location": [48.858296, 2.294526], "files": ["file_x"], - "owner": str(user2_id), - "created_at": datetime.utcnow() + "user_id": str(user2_id) }, { "title": f"Mont Saint Michel", "description": "Description Y", "location": [48.636111, -1.511389], "files": ["file_y"], - "owner": str(user2_id), - "created_at": datetime.utcnow() + "user_id": str(user2_id) } ])