Permalink
Browse files

Inserting NULL for the group ID.

This autogenerates an integer primary key value for the ID.

Signed-off-by: Joe Baker <jbaker0428@gmail.com>
  • Loading branch information...
1 parent 77cae25 commit 15a0aa08bc44cc453e136214c3b423d6d9826e28 @jbaker0428 committed Apr 22, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 gc_attendance.py
View
@@ -1090,8 +1090,8 @@ def insert(self, db=gcdb, connection=None):
con = connection
cur = con.cursor()
- params = (self.id, self.name, self.semester.name,)
- cur.execute('INSERT INTO groups VALUES (?,?,?)', params)
+ params = (self.name, self.semester.name,)
+ cur.execute('INSERT INTO groups VALUES (NULL,?,?)', params)
finally:
cur.close()

0 comments on commit 15a0aa0

Please sign in to comment.