added DataStore.updateTask()
This commit is contained in:
parent
64428ab99e
commit
20b7681521
11
DataStore.py
11
DataStore.py
@ -85,6 +85,17 @@ VALUES (0, ?, ?)
|
|||||||
c.close()
|
c.close()
|
||||||
self.conn.commit()
|
self.conn.commit()
|
||||||
|
|
||||||
|
def updateTask(self, taskid, name, longname):
|
||||||
|
c = self.conn.cursor()
|
||||||
|
c.execute('''
|
||||||
|
UPDATE tasks
|
||||||
|
SET name = ?, longname = ?
|
||||||
|
WHERE id = ?
|
||||||
|
''', (name, longname, taskid))
|
||||||
|
c.close()
|
||||||
|
self.conn.commit()
|
||||||
|
return True
|
||||||
|
|
||||||
def getTaskByID(self, taskid):
|
def getTaskByID(self, taskid):
|
||||||
t = None
|
t = None
|
||||||
c = self.conn.cursor()
|
c = self.conn.cursor()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user