Exemplo n.º 1
0
 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
Exemplo n.º 2
0
 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, ))