change TaskRef.dt to TaskRef.time
This commit is contained in:
parent
36bfb39320
commit
7c51c068b2
@ -13,9 +13,9 @@ class Task:
|
|||||||
self.parentid = parentid
|
self.parentid = parentid
|
||||||
|
|
||||||
class TaskRef:
|
class TaskRef:
|
||||||
def __init__(self, taskid, dt):
|
def __init__(self, taskid, time):
|
||||||
self.taskid = taskid
|
self.taskid = taskid
|
||||||
self.dt = dt
|
self.time = time
|
||||||
|
|
||||||
class DataStore:
|
class DataStore:
|
||||||
def __init__(self, dbfile):
|
def __init__(self, dbfile):
|
||||||
@ -78,7 +78,7 @@ WHERE id = 0
|
|||||||
c.execute('''
|
c.execute('''
|
||||||
INSERT INTO history
|
INSERT INTO history
|
||||||
VALUES (0, ?, ?)
|
VALUES (0, ?, ?)
|
||||||
''', (ct.taskid, ct.dt.strftime(HISTORY_DT_FMT)))
|
''', (ct.taskid, ct.time.strftime(HISTORY_DT_FMT)))
|
||||||
c.close()
|
c.close()
|
||||||
self.conn.commit()
|
self.conn.commit()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user