From ce181c653880d57b024a8da637e4dc160fa20e91 Mon Sep 17 00:00:00 2001 From: chriswebb09 Date: Fri, 15 Dec 2023 09:27:05 -0500 Subject: [PATCH] cleanup code --- DirectReport/models/team_model.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/DirectReport/models/team_model.py b/DirectReport/models/team_model.py index 4700c49d..b7456c25 100644 --- a/DirectReport/models/team_model.py +++ b/DirectReport/models/team_model.py @@ -12,11 +12,13 @@ def __init__(self, db_name="team.db"): def create_table(self): cursor = self.conn.cursor() - cursor.execute("""CREATE TABLE IF NOT EXISTS team ( + cursor.execute( + """CREATE TABLE IF NOT EXISTS team ( id TEXT UNIQUE NOT NULL PRIMARY KEY, team_name TEXT NOT NULL, team_email TEXT NOT NULL - )""") + )""" + ) def insert_team(self, team_name, team_email): cursor = self.conn.cursor()