if self.process.id_ is None:
raise NotFoundException('Process of Todo without ID (not saved?)')
cursor = db_conn.exec('REPLACE INTO todos VALUES (?,?,?,?)',
(self.id_, self.process.id_,
self.is_done, self.day.date))
self.id_ = cursor.lastrowid
if self.process.id_ is None:
raise NotFoundException('Process of Todo without ID (not saved?)')
cursor = db_conn.exec('REPLACE INTO todos VALUES (?,?,?,?)',
(self.id_, self.process.id_,
self.is_done, self.day.date))
self.id_ = cursor.lastrowid