

def is_completed_run(db, run_id, min_datetime):
    '\n    '
    if min_datetime.tzinfo:
        min_dtz = min_datetime.astimezone(tzutc())
    else:
        min_dtz = min_datetime.replace(tzinfo=tzutc())
    completed_run = get_completed_run(db, run_id, min_dtz)
    if completed_run:
        _L.debug('Found completed run {0} ({1}) since {min_datetime}'.format(*completed_run, **locals()))
    else:
        _L.debug('No completed run {run_id} since {min_datetime}'.format(**locals()))
    return bool((completed_run is not None))

dataset/ETHPy150Open openaddresses/machine/openaddr/ci/__init__.py is_completed_run/original