def get_user_attempts(request: AxesHttpRequest, credentials: dict = None) -> QuerySet:
attempts = filter_user_attempts(request, credentials)<EOL>if settings.AXES_COOLOFF_TIME is None:<EOL><INDENT>log.debug('<STR_LIT>')<EOL>return attempts<EOL><DEDENT>threshold = get_cool_off_threshold(request.axes_attempt_time)<EOL>log.debug('<STR_LIT>', threshold)<EOL>return attempts.filter(attempt_time__gte=threshold)<EOL>
Get valid user attempts that match the given request and credentials.