Пример #1
0
def user_register_contest(user, contest):
    if can_register(user, contest):
        add_contestant(user, contest)
        return True
    return False
Пример #2
0
def can_register(user, contest):
    return contest_info.can_register(user, contest)
Пример #3
0
def user_register_contest(user, contest):
    if can_register(user, contest):
        add_contestant(user, contest)
        return True
    return False