Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 15a0aa08bc44cc453e136214c3b423d6d9826e28 1 parent 77cae25
@jbaker0428 authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 gc_attendance.py
View
4 gc_attendance.py
@@ -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()
Please sign in to comment.
Something went wrong with that request. Please try again.