From 0e387f3c063e8813d757dda7a2189f9b7cfade0b Mon Sep 17 00:00:00 2001 From: counterweight Date: Sat, 14 Jun 2025 23:56:13 +0200 Subject: [PATCH] moar events --- create_events.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/create_events.py b/create_events.py index 5a683b1..7d04f8a 100644 --- a/create_events.py +++ b/create_events.py @@ -117,11 +117,17 @@ def main(): cur = conn.cursor() my_user = User(cursor=cur, name="John", age=95, hair_color="Gray") - my_user.update_user_details(age=96) - my_user.delete_user() + my_other_user = User(cursor=cur, name="Jane", age=3, hair_color="Fire Red") + my_other_user.update_user_details(age=15, hair_color="Golden Blonde") + my_other_user.update_user_details(age=35, hair_color="Touches of gray") + + my_immutable_user = User( + cursor=cur, name="The Dude", age=33, hair_color="Muffin Orange" + ) + # Commit the transaction conn.commit()