Beispiel #1
0
def participate(ctx, team):
    """
    Participate in a challenge.
    """
    """
    Invoked by running `evalai challenge CHALLENGE participate TEAM`
    """
    participate_in_a_challenge(ctx.challenge_id, team)
Beispiel #2
0
def participate(ctx, team):
    """
    Participate in a challenge.
    """
    """
    Invoked by running `evalai challenge CHALLENGE participate TEAM`
    """
    terms_and_conditions_page_url = "{}{}".format(get_host_url(), URLS.terms_and_conditions_page.value)
    terms_and_conditions_page_url = terms_and_conditions_page_url.format(ctx.challenge_id)
    message = "Please refer challenge terms and conditions here: {}" \
        "\n\nBy agreeing to participate in the challenge, you are agreeing to terms and conditions." \
        "\n\nDo you accept challenge terms and conditions?".format(terms_and_conditions_page_url)
    if click.confirm(message):
        participate_in_a_challenge(ctx.challenge_id, team)
    else:
        message = "\nYou can't participate in the challenge without accepting terms and conditions"
        notify_user(message, color="red")