def check_update(self):
    file = 'data.csv'
    history = open(file, 'r')
    if (os.stat(file).st_size == 0):
        File.append_file(file, 'Date,Total cases,Hawai’i,Oahu,Kaua’i,Maui,Pending,Residents diagnosed outside of Hawai‘i,Required Hospitalization,Hawaii deaths,Lanai,Molokai')
        return False
    for line in history:
        pass
    lastLine = line
    history.close()
    if (self.get_date() in lastLine):
        return True
    lastLine = lastLine.split(',')
    lastLine.pop(0)
    self.prev = lastLine
    return False
def check_update(self):
    file = 'data.csv'
    history = open(file, 'r')
    if (os.stat(file).st_size == 0):
        File.append_file(file, 'Date,Total cases,Hawai’i,Oahu,Kaua’i,Maui,Pending,Residents diagnosed outside of Hawai‘i,Required Hospitalization,Hawaii deaths,Lanai,Molokai')
        return False
    for line in history:
        pass
    lastLine = line
    history.close()
    if (self.get_date() in lastLine):
        return True
    lastLine = lastLine.split(',')
    lastLine.pop(0)
    self.prev = lastLine
    return False