DataStore.createTask(): strip names
This commit is contained in:
parent
1f861b12ea
commit
fa2413810d
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user