def time_check(message):
    """
    check if the duration for the quick search preference is a valid input
    """
    time = 0
    try:
        time = int(message)
    except Exception as e:
        return False
    
    if time < 1 or time > 8:
        return False
    
    return True