change TaskRef.dt to TaskRef.time

This commit is contained in:
Josh Holtrop 2011-01-02 21:54:39 -05:00
parent 36bfb39320
commit 7c51c068b2

View File

@ -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()