DataStore.createTask(): strip names

This commit is contained in:
Josh Holtrop committed 2011-01-02 22:07:34 -05:00
1 parent 1f861b12ea
commit fa2413810d
1 file changed
+1 -1
+1 -1
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