From 17147307b7417fd7a5a205c45d4093dbc64080f8 Mon Sep 17 00:00:00 2001 From: Wylie Campbell Date: Wed, 30 Sep 2026 21:03:51 +1000 Subject: [PATCH] Add helpers.py --- src/cs50_final_project/helpers.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/cs50_final_project/helpers.py diff --git a/src/cs50_final_project/helpers.py b/src/cs50_final_project/helpers.py new file mode 100644 index 0000000..899035d --- /dev/null +++ b/src/cs50_final_project/helpers.py @@ -0,0 +1,9 @@ +def create_db(db): + # Create table storing calendar events + db.execute(""" + CREATE TABLE IF NOT EXISTS events ( + name TEXT NOT NULL, + description TEXT NOT NULL, + time DATETIME NOT NULL + length INT NOT NULL,); + """) \ No newline at end of file