def delete_progress(self, episode: Episode): cursor = self._conn.cursor() cursor.execute(self.SQL_EPISODE_PROGRESS_DELETE, (episode.ep_id,)) episode.progress = None self._conn.commit()
def replace_progress(self, episode: Episode, progress: int): cursor = self._conn.cursor() cursor.execute(self.SQL_EPISODE_PROGRESS_REPLACE, (episode.ep_id, progress)) episode.progress = progress self._conn.commit()