Esempio n. 1
0
 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()
Esempio n. 2
0
 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()