DataStore.createTask(): strip names

This commit is contained in:
Josh Holtrop 2011-01-02 22:07:34 -05:00
parent 1f861b12ea
commit fa2413810d

View File

@ -179,7 +179,7 @@ FROM tasks
c.execute('''
INSERT INTO tasks
VALUES (?, ?, ?, ?)
''', (nextid, name, longname, parentid))
''', (nextid, name.strip(), longname.strip(), parentid))
c.close()
self.conn.commit()
return nextid