Пример #1
0
    def get_ticket_info(self, is_student, discount_code=None, has_solved_challenge=False):
        # early_bird_deadline = datetime.strptime('Sep 1 2015', '%b %d %Y')
        # is_early_bird = datetime.now() < early_bird_deadline
        is_early_bird = False

        ticket_description, ticket_price, discount = Registration.get_ticket_info(
                is_student=is_student,
                is_early_bird=is_early_bird,
                has_solved_challenge=has_solved_challenge,
                discount_code=discount_code
            )
        return (is_early_bird, ticket_description, ticket_price, discount)