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