def from_parm(cls, album_id, filename, size, start, end) -> G: new_row = cls.make(RemoteId=album_id, AlbumName=filename, Size=size, StartDate=start, EndDate=end, SyncDate=Utils.date_to_string(datetime.now()), Downloaded=0) return new_row
def set_scan_date(self, last_date: datetime): d = Utils.date_to_string(last_date) self.cur.execute('UPDATE Globals SET LastIndex=? ' 'WHERE Id IS 1', (d, ))