Skip to content

Commit 8adccea

Browse files
renzonrenzon
authored andcommitted
Change launch dates to Cohort Thiago Avelino
close #3351
1 parent b3ccc1a commit 8adccea

File tree

3 files changed

+12
-11
lines changed

3 files changed

+12
-11
lines changed

pythonpro/checkout/facade.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
from django.utils import timezone
44

5-
launch_datetime_begin = timezone.make_aware(datetime(2020, 8, 16, 19, 0, 0))
6-
discount_50_percent_datetime_limit = timezone.make_aware(datetime(2020, 8, 17, 23, 59, 59))
7-
discount_35_percent_datetime_limit = timezone.make_aware(datetime(2020, 8, 18, 23, 59, 59))
8-
launch_datetime_finish = timezone.make_aware(datetime(2020, 8, 31, 23, 59, 59))
5+
launch_datetime_begin = timezone.make_aware(datetime(2021, 1, 5, 0, 0, 0))
6+
discount_50_percent_datetime_limit = timezone.make_aware(datetime(2021, 1, 18, 23, 59, 59))
7+
discount_35_percent_datetime_limit = timezone.make_aware(datetime(2021, 1, 19, 23, 59, 59))
8+
launch_datetime_finish = timezone.make_aware(datetime(2021, 1, 20, 23, 59, 59))
99

1010

1111
def is_launch_open():

pythonpro/core/templates/core/index.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,16 @@ <h2 class="pythonpro-subtitle mb-4 mb-md-5">Curso Presencial Online Completo<br/
2828
</div>
2929
</div>
3030
<div class="col-12 col-md text-light">
31-
{% if is_launch_open %}
32-
<h3 class="mb-3">Inscrições Abertas!</h3>
33-
<p>Aulas da turma começam em agosto. Garanta sua matrícula, vagas limitadas!</p>
34-
<a class="btn btn-warning p-4 font-weight-bold" href="{% url 'checkout:bootcamp_lp' %}?utm_source=pythonpro-home" role="button">SIM! Quero me matricular &raquo;</a>
35-
36-
{% else %}
31+
{# {% if is_launch_open %}#}
32+
{# <h3 class="mb-3">Inscrições Abertas!</h3>#}
33+
{# <p>Aulas da turma começam em janeiro. Garanta sua matrícula, vagas limitadas!</p>#}
34+
{# <a class="btn btn-warning p-4 font-weight-bold" href="{% url 'checkout:bootcamp_lp' %}?utm_source=pythonpro-home" role="button">SIM! Quero me matricular &raquo;</a>#}
35+
{# #}
36+
{# {% else %}#}
3737
<h3 class="mb-3">Curso Python Birds Grátis</h3>
3838
<p>Cadastre seu email para ganhar um curso básico de Programação!</p>
3939
<a class="btn btn-warning p-4 font-weight-bold" href="{% url 'core:lead_landing' %}" role="button">SIM! Quero meu curso grátis &raquo;</a>
40-
{% endif %}
40+
{# {% endif %}#}
4141

4242
<h5 class="mt-4 mb-2">Já tem conta?</h5>
4343
<a class="btn btn-light my-2 my-sm-0 text-dark" href="{% url 'two_factor:login' %}?next={% url 'dashboard:home' %}" role="button">Entrar</a>

pythonpro/core/tests/test_view_home.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ def home_resp_open_subscriptions(client, mocker):
6666
return _resp(client)
6767

6868

69+
@pytest.mark.skip('Temporary not showing subscription link')
6970
def test_payment_link_is_present(home_resp_open_subscriptions):
7071
"""
7172
Assert Payment link is present on home page when subscriptions are open

0 commit comments

Comments
 (0)