From 83b55d43ff8c3261c482d4ba36e28d99c4da6350 Mon Sep 17 00:00:00 2001 From: Peter Vacho Date: Thu, 2 Jan 2025 14:46:26 +0100 Subject: [PATCH] Create an invited event when populating db --- populate_db.py | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/populate_db.py b/populate_db.py index 99fcc0d..a221b5f 100755 --- a/populate_db.py +++ b/populate_db.py @@ -106,14 +106,27 @@ EVENTS: list[EventConstructData] = [ title="Event 2", description="Description 2", category_ids=[], - start_time=datetime(2025, 1, 1, 12, 00, tzinfo=UTC), - end_time=datetime(2025, 1, 1, 12, 30, tzinfo=UTC), + start_time=datetime(2025, 1, 1, 14, 00, tzinfo=UTC), + end_time=datetime(2025, 1, 1, 14, 30, tzinfo=UTC), color=Color("#ff0000"), ), owner_username="user2", attendee_usernames=[], category_names=["Category A", "Category B"], ), + EventConstructData( + data=EventCreateData( + title="Event 3", + description="Description 3", + category_ids=[], + start_time=datetime(2025, 1, 1, 10, 00, tzinfo=UTC), + end_time=datetime(2025, 1, 1, 10, 30, tzinfo=UTC), + color=Color("#00ff00"), + ), + owner_username="user2", + attendee_usernames=["user1"], + category_names=["Category A", "Category B"], + ), ] INVITATIONS: list[InvitationConstructData] = [