

def check_can_resume(self):
    '\n        Run a series of checks to see if the previous download can be resumed\n\n        If so, return True, else False.\n        '
    result = False
    if os.path.exists(self.zip_path):
        if self.last_started_download:
            if (not self.last_started_download.finish_datetime):
                prev_release = self.last_started_download.version.release_datetime
                if (self.current_release_datetime == prev_release):
                    result = True
    return result

dataset/ETHPy150Open california-civic-data-coalition/django-calaccess-raw-data/calaccess_raw/management/commands/downloadcalaccessrawdata.py Command.check_can_resume/original