def user_register_contest(user, contest): if can_register(user, contest): add_contestant(user, contest) return True return False
def can_register(user, contest): return contest_info.can_register(user, contest)