diff --git a/DataStore.py b/DataStore.py index 2d66cb3..333204c 100644 --- a/DataStore.py +++ b/DataStore.py @@ -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()