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(''' c.execute('''
INSERT INTO tasks INSERT INTO tasks
VALUES (?, ?, ?, ?) VALUES (?, ?, ?, ?)
''', (nextid, name, longname, parentid)) ''', (nextid, name.strip(), longname.strip(), parentid))
c.close() c.close()
self.conn.commit() self.conn.commit()
return nextid return nextid