From fa2413810db4ae4acf91903a94eb9e724408347d Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Sun, 2 Jan 2011 22:07:34 -0500 Subject: [PATCH] DataStore.createTask(): strip names --- DataStore.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DataStore.py b/DataStore.py index 837ef1a..8f6a214 100644 --- a/DataStore.py +++ b/DataStore.py @@ -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